diff options
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 |