Sha256: 8999654913248337baa23d2e9dbef805583c828e38e80f081697812bf27812ab

Contents?: true

Size: 642 Bytes

Versions: 8

Compression:

Stored size: 642 Bytes

Contents

require 'chef/resource/lwrp_base'
require 'chef_metal'
require 'chef_metal/machine'
require 'chef_metal/provisioner'

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
  end

  actions :run
  default_action :run

  attribute :command, :kind_of => String, :name_attribute => true
  attribute :machine, :kind_of => [String, ChefMetal::Machine]

  attribute :chef_server, :kind_of => Hash
  attribute :provisioner, :kind_of => ChefMetal::Provisioner
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
chef-metal-0.9.4 lib/chef/resource/machine_execute.rb
chef-metal-0.9.3 lib/chef/resource/machine_execute.rb
chef-metal-0.9.2 lib/chef/resource/machine_execute.rb
chef-metal-0.9.1 lib/chef/resource/machine_execute.rb
chef-metal-0.9 lib/chef/resource/machine_execute.rb
chef-metal-0.8.2 lib/chef/resource/machine_execute.rb
chef-metal-0.8.1 lib/chef/resource/machine_execute.rb
chef-metal-0.8 lib/chef/resource/machine_execute.rb