Sha256: 637d69e51ca3fe41bcd1d25137834ae8ffc2d8cb0f15f397915337a504ebabbe
Contents?: true
Size: 552 Bytes
Versions: 59
Compression:
Stored size: 552 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(IO.binread(path)) Puppet::FileBucket::File.indirection.terminus_class = :file Puppet::FileBucket::File.indirection.save file file.checksum end end end
Version data entries
59 entries across 59 versions & 3 rubygems