lib/chef/resource/machine_execute.rb in chef-metal-0.9.4 vs lib/chef/resource/machine_execute.rb in chef-metal-0.10

- old
+ new

@@ -6,11 +6,11 @@ class Chef::Resource::MachineExecute < Chef::Resource::LWRPBase self.resource_name = 'machine_execute' def initialize(*args) super - @chef_server = Cheffish.enclosing_chef_server - @provisioner = ChefMetal.enclosing_provisioner + @chef_server = run_context.cheffish.current_chef_server + @provisioner = run_context.chef_metal.current_provisioner end actions :run default_action :run