Sha256: ce19db46ddf0f95464843ce719826b4667cb70400bc06f89af3fdb14bace72e4

Contents?: true

Size: 625 Bytes

Versions: 7

Compression:

Stored size: 625 Bytes

Contents

require 'lino'

require_relative 'base'
require_relative 'mixins/global_config'
require_relative 'mixins/colon_config'
require_relative 'mixins/with_captured_output'

module RubyGPG2
  module Commands
    class ListSecretKeys < Base
      include Mixins::GlobalConfig
      include Mixins::ColonConfig
      include Mixins::WithCapturedOutput

      def configure_command(builder, opts)
        builder = builder.with_subcommand('--list-secret-keys')
        builder = super(builder, opts)
        builder
      end

      def do_after(opts)
        super(opts.merge(output_method: :secret_keys))
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby_gpg2-0.1.0.pre.14 lib/ruby_gpg2/commands/list_secret_keys.rb
ruby_gpg2-0.1.0.pre.13 lib/ruby_gpg2/commands/list_secret_keys.rb
ruby_gpg2-0.1.0.pre.12 lib/ruby_gpg2/commands/list_secret_keys.rb
ruby_gpg2-0.1.0.pre.11 lib/ruby_gpg2/commands/list_secret_keys.rb
ruby_gpg2-0.1.0.pre.10 lib/ruby_gpg2/commands/list_secret_keys.rb
ruby_gpg2-0.1.0.pre.9 lib/ruby_gpg2/commands/list_secret_keys.rb
ruby_gpg2-0.1.0.pre.8 lib/ruby_gpg2/commands/list_secret_keys.rb