Class: Chef::Provider::Machine

Inherits:
LWRPBase
  • Object
show all
Includes:
ChefMetal::ProviderActionHandler
Defined in:
lib/chef/provider/machine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ChefMetal::ProviderActionHandler

#debug_name, #perform_action, #recipe_context, #updated!

Instance Attribute Details

#node_providerObject (readonly)

Returns the value of attribute node_provider.



57
58
59
# File 'lib/chef/provider/machine.rb', line 57

def node_provider
  @node_provider
end

Instance Method Details

#load_current_resourceObject



59
60
61
62
# File 'lib/chef/provider/machine.rb', line 59

def load_current_resource
  @node_provider = Chef::Provider::ChefNode.new(new_resource, nil)
  @node_provider.load_current_resource
end

#whyrun_supported?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/chef/provider/machine.rb', line 12

def whyrun_supported?
  true
end