Class: Chef::Provider::MachineFile

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

Instance Method Summary collapse

Instance Method Details

#action_handlerObject



7
8
9
# File 'lib/chef/provider/machine_file.rb', line 7

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

#machineObject



17
18
19
20
21
22
23
24
25
# File 'lib/chef/provider/machine_file.rb', line 17

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

#whyrun_supported?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/chef/provider/machine_file.rb', line 13

def whyrun_supported?
  true
end