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.



64
65
66
# File 'lib/chef/provider/machine.rb', line 64

def node_provider
  @node_provider
end

Instance Method Details

#load_current_resourceObject



66
67
68
69
# File 'lib/chef/provider/machine.rb', line 66

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