summaryrefslogtreecommitdiff
path: root/lib/chef/resource/ruby_block.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/ruby_block.rb')
-rw-r--r--lib/chef/resource/ruby_block.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/chef/resource/ruby_block.rb b/lib/chef/resource/ruby_block.rb
index a3cb9e56e5..911e6203d8 100644
--- a/lib/chef/resource/ruby_block.rb
+++ b/lib/chef/resource/ruby_block.rb
@@ -22,10 +22,12 @@ require "chef/provider/ruby_block"
class Chef
class Resource
- # Use the ruby_block resource to execute Ruby code during a chef-client run. Ruby code in the ruby_block resource is
- # evaluated with other resources during convergence, whereas Ruby code outside of a ruby_block resource is evaluated
- # before other resources, as the recipe is compiled.
class RubyBlock < Chef::Resource
+ description "Use the ruby_block resource to execute Ruby code during a chef-client run."\
+ " Ruby code in the ruby_block resource is evaluated with other resources during"\
+ " convergence, whereas Ruby code outside of a ruby_block resource is evaluated"\
+ " before other resources, as the recipe is compiled."
+
default_action :run
allowed_actions :create, :run