Class: Chef::Provider::MachineExecute

Inherits:
LWRPBase
  • Object
show all
Defined in:
lib/chef/provider/machine_execute.rb

Instance Method Summary collapse

Instance Method Details

#action_handlerObject


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

def action_handler
  @action_handler ||= Chef::Provisioning::ChefProviderActionHandler.new(self)
end

#machineObject


20
21
22
23
24
25
26
27
28
# File 'lib/chef/provider/machine_execute.rb', line 20

def machine
  @machine ||= begin
    if new_resource.machine.kind_of?(Chef::Provisioning::Machine)
      new_resource.machine
    else
      run_context.chef_provisioning.connect_to_machine(new_resource.machine, new_resource.chef_server)
    end
  end
end

#whyrun_supported?Boolean

Returns:

  • (Boolean)

16
17
18
# File 'lib/chef/provider/machine_execute.rb', line 16

def whyrun_supported?
  true
end