diff options
author | Xabier de Zuazo <xabier@zuazo.org> | 2013-01-18 13:11:37 +0100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-06-19 14:18:43 -0700 |
commit | 2c25de2828f8a959acd5542730ad15a0136fd3ee (patch) | |
tree | e949192f41ab0482102374a95f8722eacc03f68a /lib/chef/resource/conditional.rb | |
parent | 91f9b6aef4d6ff0454ba92fe163aab4921eb83b5 (diff) | |
download | chef-2c25de2828f8a959acd5542730ad15a0136fd3ee.tar.gz |
[CHEF-972] created a ConditionalAction class to be used in resource#should_skip? method
Diffstat (limited to 'lib/chef/resource/conditional.rb')
-rw-r--r-- | lib/chef/resource/conditional.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/resource/conditional.rb b/lib/chef/resource/conditional.rb index 3f892af827..60f65e14e2 100644 --- a/lib/chef/resource/conditional.rb +++ b/lib/chef/resource/conditional.rb @@ -83,6 +83,10 @@ class Chef @block.call end + def short_description + @positivity + end + def description cmd_or_block = @command ? "command `#{@command}`" : "ruby block" "#{@positivity} #{cmd_or_block}" |