Sha256: 9970d530999d26cc492a9c8afc971b52f27b0b7ab588ac748602d9326f103000
Contents?: true
Size: 381 Bytes
Versions: 2
Compression:
Stored size: 381 Bytes
Contents
require "chef/knife" class Chef class Knife class Encrypt < Knife banner "knife encrypt DATA (options)" def run decrypted_value = eval @name_args[0] secret = Chef::EncryptedDataBagItem.load_secret encrypted_value = Chef::EncryptedDataBagItem.encrypt_value decrypted_value, secret puts encrypted_value end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
knife-crypt-0.0.2 | lib/chef/knife/encrypt.rb |
knife-crypt-0.0.1 | lib/chef/knife/encrypt.rb |