# File lib/rhc/helpers.rb, line 131 def deprecated(msg,short = false) HighLine::use_color = false if windows? # handle deprecated commands that does not start through highline info = " For porting and testing purposes you may switch this %s to %s by setting the DISABLE_DEPRECATED environment variable to %d. It is not recommended to do so in a production environment as this option will be removed in a future release." msg << info unless short raise DeprecatedError.new(msg % ['an error','a warning',0]) if disable_deprecated? warn "Warning: #{msg}\n" % ['a warning','an error',1] end