Sha256: 82f9c6acf8f1e1f882b16d9600cdd5f63a314f75692d437f28464fb1b6ef6a8b
Contents?: true
Size: 598 Bytes
Versions: 7
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true module Bolt class Secret def self.execute(plugins, outputter, options) case options[:action] when 'createkeys' plugins.get_hook('pkcs7', :secret_createkeys).call when 'encrypt' encrypted = plugins.get_hook('pkcs7', :secret_encrypt).call('plaintext-value' => options[:object]) outputter.print_message(encrypted) when 'decrypt' decrypted = plugins.get_hook('pkcs7', :secret_decrypt).call('encrypted-value' => options[:object]) outputter.print_message(decrypted) end 0 end end end
Version data entries
7 entries across 7 versions & 1 rubygems