开发者

Where does 'color_puts' come from?

开发者 https://www.devze.com 2022-12-23 18:03 出处:网络
I can\'t find where the color_puts would come from in the mod_passenger installer.开发者_高级运维.. any ideas?Looked up myself just what you meant, since it\'s more fun than working.

I can't find where the color_puts would come from in the mod_passenger installer.开发者_高级运维.. any ideas?


Looked up myself just what you meant, since it's more fun than working.

Check the require statements at the top of the file - you'll see that there are only 3 possible sources, given that color_puts is not a Ruby standard.

Turns out, it's in abstract_installer.rb.

def color_print(text)
    STDOUT.write(ConsoleTextTemplate.new(:text => text).result)
    STDOUT.flush
end

def color_puts(text)
    color_print("#{text}\n")
end
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号