blob: 4c9523b6c1f38e67fb6e526afad9a8bbd0b10671 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# Store a specified file in our filebucket.
Puppet::Face.define(:file, '0.0.1') do
action :store do |*args|
when_invoked do |path, options|
file = Puppet::FileBucket::File.new(File.read(path))
Puppet::FileBucket::File.indirection.terminus_class = :file
Puppet::FileBucket::File.indirection.save file
file.checksum
end
end
end
|