Sha256: 7b05b712c08f32d400eda6b98c2ac7e75862da282bf68bb0c45a6b8cd9bcf4c8

Contents?: true

Size: 822 Bytes

Versions: 31

Compression:

Stored size: 822 Bytes

Contents

require 'chef/resource/lwrp_base'
require 'chef/provisioning'
require 'chef/provisioning/machine'
require 'chef/provisioning/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 => Chef::Provisioning::Driver

end
end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
chef-provisioning-0.20.1 lib/chef/resource/machine_file.rb
chef-provisioning-1.0.0.rc.1 lib/chef/resource/machine_file.rb
chef-provisioning-0.20 lib/chef/resource/machine_file.rb
chef-provisioning-0.19 lib/chef/resource/machine_file.rb
chef-provisioning-0.18 lib/chef/resource/machine_file.rb
chef-provisioning-0.17 lib/chef/resource/machine_file.rb
chef-provisioning-0.16 lib/chef/resource/machine_file.rb
chef-provisioning-0.15.3 lib/chef/resource/machine_file.rb
chef-provisioning-0.15.2 lib/chef/resource/machine_file.rb
chef-provisioning-0.15.1 lib/chef/resource/machine_file.rb
chef-provisioning-0.15 lib/chef/resource/machine_file.rb