开发者

Where does 'color_puts' come from?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜