diff options
author | Peter Burkholder <pburkholder@chef.io> | 2015-03-24 11:13:22 -0400 |
---|---|---|
committer | Bryan McLellan <btm@chef.io> | 2015-03-27 13:35:42 -0700 |
commit | 312253ebfd88ac57b8433c2f859690068fe7cb14 (patch) | |
tree | f19a8014978274dcc0f09da41197d3d463b8707a /lib/chef/resource/gem_package.rb | |
parent | 36f040b73d99f0b5aae5bdab716ffa1aac060266 (diff) | |
download | chef-312253ebfd88ac57b8433c2f859690068fe7cb14.tar.gz |
Clearing sources works for string options
Diffstat (limited to 'lib/chef/resource/gem_package.rb')
-rw-r--r-- | lib/chef/resource/gem_package.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/resource/gem_package.rb b/lib/chef/resource/gem_package.rb index 631aa13f56..0e838ca040 100644 --- a/lib/chef/resource/gem_package.rb +++ b/lib/chef/resource/gem_package.rb @@ -27,12 +27,17 @@ class Chef def initialize(name, run_context=nil) super @resource_name = :gem_package + @clear_sources = false end def source(arg=nil) set_or_return(:source, arg, :kind_of => [ String, Array ]) end + def clear_sources(arg=nil) + set_or_return(:clear_sources, arg, :kind_of => [ TrueClass, FalseClass ]) + end + # Sets a custom gem_binary to run for gem commands. def gem_binary(gem_cmd=nil) set_or_return(:gem_binary,gem_cmd,:kind_of => [ String ]) |