diff options
author | sonots <sonots@gmail.com> | 2015-01-16 04:01:39 +0900 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2015-02-12 14:02:17 -0500 |
commit | c196fa94b5353402916d96b6b92ddb6a1830ab25 (patch) | |
tree | db4b2224104b0e1bd115fbb8b20f2b3ac0b07809 /lib/chef/resource/rpm_package.rb | |
parent | 67d6a3d548701f669e613fffbe435f69480829d1 (diff) | |
download | chef-c196fa94b5353402916d96b6b92ddb6a1830ab25.tar.gz |
allow_downgrade in rpm_package
Diffstat (limited to 'lib/chef/resource/rpm_package.rb')
-rw-r--r-- | lib/chef/resource/rpm_package.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/chef/resource/rpm_package.rb b/lib/chef/resource/rpm_package.rb index 8634f1e25d..f00121dd69 100644 --- a/lib/chef/resource/rpm_package.rb +++ b/lib/chef/resource/rpm_package.rb @@ -28,6 +28,15 @@ class Chef def initialize(name, run_context=nil) super @resource_name = :rpm_package + @allow_downgrade = false + end + + def allow_downgrade(arg=nil) + set_or_return( + :allow_downgrade, + arg, + :kind_of => [ TrueClass, FalseClass ] + ) end end |