Sha256: fcc74cb6c8282d3e5d4a6204ccf582bd9de8bf5593c09be0ac729b13d6213f25
Contents?: true
Size: 872 Bytes
Versions: 3
Compression:
Stored size: 872 Bytes
Contents
require 'chef/resource/lwrp_base' require 'chef_metal' require 'chef_metal/machine' require 'chef_metal/provisioner' class Chef::Resource::MachineFile < Chef::Resource::LWRPBase self.resource_name = 'machine_file' def initialize(*args) super @chef_server = run_context.cheffish.current_chef_server @provisioner = run_context.chef_metal.current_provisioner end actions :upload, :download, :delete, :nothing default_action :upload attribute :path, :kind_of => String, :name_attribute => true attribute :machine, :kind_of => [String, ChefMetal::Machine] attribute :local_path, :kind_of => String attribute :content attribute :owner, :kind_of => String attribute :group, :kind_of => String attribute :mode, :kind_of => String attribute :chef_server, :kind_of => Hash attribute :provisioner, :kind_of => ChefMetal::Provisioner end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chef-metal-0.10.2 | lib/chef/resource/machine_file.rb |
chef-metal-0.10.1 | lib/chef/resource/machine_file.rb |
chef-metal-0.10 | lib/chef/resource/machine_file.rb |