Class: Chef::Provider::RubyBlock

Inherits:
Chef::Provider show all
Defined in:
lib/chef/provider/ruby_block.rb

Instance Attribute Summary

Attributes inherited from Chef::Provider

#current_resource, #new_resource, #node

Instance Method Summary collapse

Methods inherited from Chef::Provider

#action_nothing, build_from_file, #initialize

Methods included from Mixin::ConvertToClassName

#convert_to_class_name, #filename_to_qualified_string

Methods included from Mixin::RecipeDefinitionDSLCore

#method_missing

Constructor Details

This class inherits a constructor from Chef::Provider

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Chef::Mixin::RecipeDefinitionDSLCore

Instance Method Details

#action_createObject



10
11
12
# File 'lib/chef/provider/ruby_block.rb', line 10

def action_create
  @new_resource.block.call
end

#load_current_resourceObject



5
6
7
8
# File 'lib/chef/provider/ruby_block.rb', line 5

def load_current_resource
  Chef::Log.debug(@new_resource.inspect)
  true
end