Sha256: 45ce15c33e662cc1d6c66f233941a24ffc1fa3effb2b18194eef17ebb1ae6c2f
Contents?: true
Size: 562 Bytes
Versions: 13
Compression:
Stored size: 562 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::Util.binread(path)) Puppet::FileBucket::File.indirection.terminus_class = :file Puppet::FileBucket::File.indirection.save file file.checksum end end end
Version data entries
13 entries across 13 versions & 2 rubygems