Sha256: fe0364d925dcdffaf8dd2c07faf83c4dc940aaad6a865dcbde6f81437a494343
Contents?: true
Size: 792 Bytes
Versions: 7
Compression:
Stored size: 792 Bytes
Contents
require 'chef/resource/lwrp_base' require 'chef_metal' require 'chef_metal/machine' require 'chef_metal/driver' class Chef class Resource class MachineFile < Chef::Resource::LWRPBase self.resource_name = 'machine_file' def initialize(*args) super @chef_server = run_context.cheffish.current_chef_server end actions :upload, :download, :delete, :nothing default_action :upload attribute :path, :kind_of => String, :name_attribute => true attribute :machine, :kind_of => String 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 :driver, :kind_of => ChefMetal::Driver end end end
Version data entries
7 entries across 7 versions & 1 rubygems