# File lib/rhc/helpers.rb, line 112 def deprecated(msg,short = false) 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 may be removed in future releases." msg << info unless short if RHC::Helpers.disable_deprecated? raise DeprecatedError.new(msg % ['an error','a warning',0]) else warn "Warning: #{msg}\n" % ['a warning','an error',1] end end