Class: Chef::Provider::MachineFile
- Inherits:
-
LWRPBase
- Object
- LWRPBase
- Chef::Provider::MachineFile
- Defined in:
- lib/chef/provider/machine_file.rb
Instance Method Summary collapse
Instance Method Details
#action_handler ⇒ Object
10 11 12 |
# File 'lib/chef/provider/machine_file.rb', line 10 def action_handler @action_handler ||= Chef::Provisioning::ChefProviderActionHandler.new(self) end |
#machine ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/chef/provider/machine_file.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
16 17 18 |
# File 'lib/chef/provider/machine_file.rb', line 16 def whyrun_supported? true end |