diff options
author | tyler-ball <tyleraball@gmail.com> | 2014-10-13 10:57:52 -0500 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2014-10-16 10:33:02 -0500 |
commit | 322eaf62464f306e2e3b3fec5b9fed15d17fc50b (patch) | |
tree | 7092636179051dab752cfe0e23e39ba60bace468 /lib/chef/resource/freebsd_package.rb | |
parent | 43e8d8b751293bf1eb03b69e6dc3c2c621154ed4 (diff) | |
download | chef-322eaf62464f306e2e3b3fec5b9fed15d17fc50b.tar.gz |
Removing all traces of 'created_as_type' since that fix is no longer necessary
Diffstat (limited to 'lib/chef/resource/freebsd_package.rb')
-rw-r--r-- | lib/chef/resource/freebsd_package.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/chef/resource/freebsd_package.rb b/lib/chef/resource/freebsd_package.rb index 40cc63fc55..957c25caf1 100644 --- a/lib/chef/resource/freebsd_package.rb +++ b/lib/chef/resource/freebsd_package.rb @@ -31,27 +31,15 @@ class Chef provides :package, :on_platforms => ["freebsd"] - attr_accessor :created_as_type - def initialize(name, run_context=nil) super @resource_name = :freebsd_package - @created_as_type = "freebsd_package" end def after_created assign_provider end - # This resource can be invoked with multiple names package & freebsd_package. - # We override the to_s method to ensure the key in resource collection - # matches the type resource is declared as using created_as_type. This - # logic can be removed once Chef does this for all resource in Chef 12: - # https://github.com/opscode/chef/issues/1817 - def to_s - "#{created_as_type}[#{name}]" - end - def supports_pkgng? ships_with_pkgng? || !!shell_out!("make -V WITH_PKGNG", :env => nil).stdout.match(/yes/i) end |