Sha256: 56e8d8df3cfd60cfd90e4702bffbb446c1cf19187f28afff67ea0783edb54eac
Contents?: true
Size: 568 Bytes
Versions: 18
Compression:
Stored size: 568 Bytes
Contents
# Store a specified file in our filebucket. Puppet::Face.define(:file, '0.0.1') do action :store do |*args| summary "Store a file in the local filebucket." arguments "<file>" returns "Nothing." examples <<-EOT Store a file: $ puppet file store /root/.bashrc EOT when_invoked do |path, options| file = Puppet::FileBucket::File.new(Puppet::FileSystem.binread(path)) Puppet::FileBucket::File.indirection.terminus_class = :file Puppet::FileBucket::File.indirection.save file file.checksum end end end
Version data entries
18 entries across 18 versions & 1 rubygems