Sha256: ed32bb6234922a3c9249f886e2b5ba691168295dae5a126c61e510233dbf5951

Contents?: true

Size: 703 Bytes

Versions: 18

Compression:

Stored size: 703 Bytes

Contents

require 'lino'

require_relative 'base'
require_relative 'mixins/global_config'
require_relative 'mixins/ssl_config'
require_relative 'mixins/encrypt_key_config'

module RubyEasyRSA
  module Commands
    class SetRSAPass < Base
      include Mixins::GlobalConfig
      include Mixins::SSLConfig
      include Mixins::EncryptKeyConfig

      def configure_command(builder, opts)
        filename_base = opts[:filename_base]
        file = opts[:file]

        builder = builder.with_subcommand('set-rsa-pass')
        builder = builder.with_argument(filename_base)
        builder = super(builder, opts)
        builder = builder.with_argument('file') if file
        builder
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ruby_easy_rsa-0.10.0.pre.7 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.10.0.pre.6 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.10.0.pre.5 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.10.0.pre.4 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.10.0.pre.3 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.10.0.pre.2 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.10.0.pre.1 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.9.0 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.8.0.pre.1 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.7.0 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.6.0.pre.2 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.6.0.pre.1 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.5.0 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.4.0.pre.1 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.3.0 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.2.0.pre.11 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.2.0.pre.10 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.2.0.pre.9 lib/ruby_easy_rsa/commands/set_rsa_pass.rb