class Chef::Deprecated::Base
Constants
- BASE_URL
Attributes
location[RW]
message[RW]
Public Class Methods
new(msg = nil, location = nil)
click to toggle source
# File lib/chef/deprecated.rb, line 37 def initialize(msg = nil, location = nil) @message = msg if msg @location = location if location end
Public Instance Methods
<<(location)
click to toggle source
We know that the only time this gets called is by Chef::Log.deprecation, so special case
# File lib/chef/deprecated.rb, line 52 def <<(location) @location = location end
id()
click to toggle source
# File lib/chef/deprecated.rb, line 60 def id raise NotImplementedError, "subclasses of Chef::Deprecated::Base should define #id with a unique number" end
inspect()
click to toggle source
# File lib/chef/deprecated.rb, line 56 def inspect "#{message} (CHEF-#{id})#{location}.\n#{link}" end
link()
click to toggle source
# File lib/chef/deprecated.rb, line 42 def link "Please see #{url} for further details and information on how to correct this problem." end
target()
click to toggle source
# File lib/chef/deprecated.rb, line 64 def target raise NotImplementedError, "subclasses of Chef::Deprecated::Base should define #target" end
url()
click to toggle source
# File lib/chef/deprecated.rb, line 46 def url "#{BASE_URL}#{target}" end