diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-10-22 14:26:32 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-10-22 14:26:32 -0700 |
commit | dabf765b06401fb007f5c65e63059fcf43601cc2 (patch) | |
tree | 62f35f5c301628541960fbb51e0d3ed849a3701c | |
parent | 96ae443cee10c2a901648995268bae34a8734869 (diff) | |
download | chef-dabf765b06401fb007f5c65e63059fcf43601cc2.tar.gz |
fix comments
-rw-r--r-- | lib/chef/resource.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb index 95593cd550..9e7e4cd769 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -766,18 +766,19 @@ F # (I'm looking at you Chef::Resource::Package) # Ex: # class WindowsFile < Chef::Resource - # provides :file, :on_platforms => ["windows"] + # provides :file, os: "linux", platform_family: "rhel", platform: "redhat" + # provides :file, os: "!windows + # provides :file, os: [ "linux", "aix" ] + # provides :file, os: "solaris2" do |node| + # node['platform_version'].to_f <= 5.11 + # end # # ...other stuff # end # - # TODO: add on_os, add on_platform_family - # XXX: for platform_family support please just make this take - # a block and don't reinvet ">= 6" hash key value_for_platform - # and Chef::Platform crap. def self.provides(short_name, opts={}, &block) short_name_sym = short_name if short_name.kind_of?(String) - # this is probably completely unnecessary? + # YAGNI: this is probably completely unnecessary and can be removed? short_name.downcase! short_name.gsub!(/\s/, "_") short_name_sym = short_name.to_sym |