Sha256: 0c5ce00c4853839ab1f7c317d46a964966669559757f0028098ee09e8fa7aa72

Contents?: true

Size: 730 Bytes

Versions: 6

Compression:

Stored size: 730 Bytes

Contents

# frozen_string_literal: true

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

      private

      def configure_command(initial_builder, parameters)
        builder = initial_builder.with_subcommand('set-rsa-pass')
        builder = builder.with_argument(parameters[:filename_base])
        builder = super(builder, parameters)
        builder = builder.with_argument('file') if parameters[:file]
        builder
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby_easy_rsa-0.14.0.pre.2 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.14.0.pre.1 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.13.0 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.12.0.pre.7 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.12.0.pre.6 lib/ruby_easy_rsa/commands/set_rsa_pass.rb
ruby_easy_rsa-0.12.0.pre.5 lib/ruby_easy_rsa/commands/set_rsa_pass.rb