Sha256: 5c0234eaa2a075214e9bae413e6a5f2f5790de49d59e211819d34fe08d8b7171
Contents?: true
Size: 642 Bytes
Versions: 2
Compression:
Stored size: 642 Bytes
Contents
# class to output bindings with other software class Binding # outputs puppet bindings def self.puppet(settings) # output puppet bindings to output directory %w[gpg ssl].each do |algo| %w[encrypt decrypt].each do |action| content = File.read("#{__dir__}/bindings/puppet_#{algo}_#{action}.rb") File.write("#{settings[:outdir]}puppet_#{algo}_#{action}.rb", content) end end end # outputs chef bindings def self.chef(settings) # output chef bindings to output directory content = File.read("#{__dir__}/bindings/chef.rb") File.write("#{settings[:outdir]}chef.rb", content) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rapid-vaults-1.2.0 | lib/rapid-vaults/binding.rb |
rapid-vaults-1.1.2 | lib/rapid-vaults/binding.rb |