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


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

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

#machineObject


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

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)

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

def whyrun_supported?
  true
end