Sha256: 42d7eecfaeb44faba86f3dec5c62a9f20f8776aca406a04c2e3cc05920ce273b

Contents?: true

Size: 842 Bytes

Versions: 16

Compression:

Stored size: 842 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, :required => true
  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

16 entries across 16 versions & 1 rubygems

Version Path
chef-provisioning-2.7.6 lib/chef/resource/machine_file.rb
chef-provisioning-2.7.4 lib/chef/resource/machine_file.rb
chef-provisioning-2.7.2 lib/chef/resource/machine_file.rb
chef-provisioning-2.7.1 lib/chef/resource/machine_file.rb
chef-provisioning-2.7.0 lib/chef/resource/machine_file.rb
chef-provisioning-2.6.0 lib/chef/resource/machine_file.rb
chef-provisioning-2.5.0 lib/chef/resource/machine_file.rb
chef-provisioning-2.4.0 lib/chef/resource/machine_file.rb
chef-provisioning-2.3.2 lib/chef/resource/machine_file.rb
chef-provisioning-2.3.1 lib/chef/resource/machine_file.rb
chef-provisioning-2.3.0 lib/chef/resource/machine_file.rb
chef-provisioning-2.2.1 lib/chef/resource/machine_file.rb
chef-provisioning-2.2.0 lib/chef/resource/machine_file.rb
chef-provisioning-2.1.1 lib/chef/resource/machine_file.rb
chef-provisioning-2.1.0 lib/chef/resource/machine_file.rb
chef-provisioning-2.0.2 lib/chef/resource/machine_file.rb