Method: Bundler::Thor.deprecation_warning

Defined in:
lib/bundler/vendor/thor/lib/thor/base.rb

.deprecation_warning(message) ⇒ Object

:nodoc:

[View source]

26
27
28
29
30
31
# File 'lib/bundler/vendor/thor/lib/thor/base.rb', line 26

def deprecation_warning(message) #:nodoc:
  unless ENV["THOR_SILENCE_DEPRECATION"]
    warn "Deprecation warning: #{message}\n" +
      "You can silence deprecations warning by setting the environment variable THOR_SILENCE_DEPRECATION."
  end
end