Sha256: 45111a1f7398c5e41f774f63ef6dad0d3bfcca853630a1c1c77a60aaf2ddf174
Contents?: true
Size: 413 Bytes
Versions: 3
Compression:
Stored size: 413 Bytes
Contents
require_relative "flay_knife_helpers" class Chef::Knife::DataBagEncrypt < Chef::Knife include Chef::Knife::FlayKnifeHelpers banner "knife data bag encrypt DATA_BAG ITEM (options)" category "data bag" def run cipher_text_bag = Chef::EncryptedDataBagItem.encrypt_data_bag_item(data_bag, secret) write_to_file(cipher_text_bag) if config.fetch(:write, false) display(cipher_text_bag) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chef-flavor-flay-1.1.0 | lib/chef/knife/data_bag_encrypt.rb |
chef-flavor-flay-1.0.1 | lib/chef/knife/data_bag_encrypt.rb |
chef-flavor-flay-1.0.0 | lib/chef/knife/data_bag_encrypt.rb |