lib/chef/provider/ruby_block.rb in chef-10.34.6 vs lib/chef/provider/ruby_block.rb in chef-11.0.0.beta.0
- old
+ new
@@ -26,14 +26,17 @@
def load_current_resource
true
end
- def action_create
- converge_by("execute the ruby block #{@new_resource.name}") do
+ def action_run
+ converge_by("execute the ruby block #{@new_resource.name}") do
@new_resource.block.call
Chef::Log.info("#{@new_resource} called")
end
end
+
+ alias :action_create :action_run
+
end
end
end