Class: Chef::Provider::MachineFile
Instance Method Summary
collapse
#debug_name, #perform_action, #recipe_context, #updated!
Instance Method Details
#machine ⇒ Object
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/chef/provider/machine_file.rb', line 14
def machine
@machine ||= begin
if new_resource.machine.kind_of?(ChefMetal::Machine)
new_resource.machine
else
node = Cheffish::CheffishServerAPI.new(new_resource.chef_server).get("/nodes/#{new_resource.machine}")
new_resource.provisioner.connect_to_machine(node)
end
end
end
|
#whyrun_supported? ⇒ Boolean
10
11
12
|
# File 'lib/chef/provider/machine_file.rb', line 10
def whyrun_supported?
true
end
|