lib/chamber/binary/runner.rb in chamber-3.0.1 vs lib/chamber/binary/runner.rb in chamber-3.1.0

- old
+ new

@@ -3,10 +3,11 @@ require 'thor' require 'chamber/rubinius_fix' require 'chamber/commands/show' require 'chamber/commands/files' require 'chamber/commands/secure' +require 'chamber/commands/unsecure' require 'chamber/commands/sign' require 'chamber/commands/verify' require 'chamber/commands/compare' require 'chamber/commands/initialize' @@ -131,9 +132,24 @@ desc: 'Does not actually encrypt anything, but instead displays ' \ 'what values would be encrypted' def secure Commands::Secure.call(**options.transform_keys(&:to_sym).merge(shell: self)) + end + + ################################################################################ + + desc 'unsecure', + 'Decrypts all encrypted values using the current key(s)' \ + + method_option :dry_run, + type: :boolean, + aliases: '-d', + desc: 'Does not actually decrypt anything, but instead displays ' \ + 'what values would be decrypted' + + def unsecure + Commands::Unsecure.call(**options.transform_keys(&:to_sym).merge(shell: self)) end ################################################################################ desc 'sign',