diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-10-22 14:33:29 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-10-26 16:21:07 -0700 |
commit | d0bda9d32fcb863d65105d2119ab3f04a10f45e8 (patch) | |
tree | 276e41806260b5873ab5f3488bc4c2cbcb2e4694 /lib/chef/cookbook | |
parent | 5a848713b2666f476a3d65b38933d2b8dfb55504 (diff) | |
download | chef-d0bda9d32fcb863d65105d2119ab3f04a10f45e8.tar.gz |
fix use as an accessor
Diffstat (limited to 'lib/chef/cookbook')
-rw-r--r-- | lib/chef/cookbook/metadata.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/cookbook/metadata.rb b/lib/chef/cookbook/metadata.rb index 4604a28e83..e9509be38c 100644 --- a/lib/chef/cookbook/metadata.rb +++ b/lib/chef/cookbook/metadata.rb @@ -404,7 +404,7 @@ class Chef # @param version_args [Array<String>] Version constraint in String form # @return [Array<Gem::Dependency>] Current chef_versions array def chef_version(*version_args) - @chef_versions << Gem::Dependency.new('chef', *version_args) + @chef_versions << Gem::Dependency.new('chef', *version_args) unless version_args.empty? @chef_versions end @@ -415,7 +415,7 @@ class Chef # @param version_args [Array<String>] Version constraint in String form # @return [Array<Gem::Dependency>] Current ohai_versions array def ohai_version(*version_args) - @ohai_versions << Gem::Dependency.new('ohai', *version_args) + @ohai_versions << Gem::Dependency.new('ohai', *version_args) unless version_args.empty? @ohai_versions end |