Class: RubyEasyRSA::Commands::SetECPass

Inherits:
Base
  • Object
show all
Includes:
Mixins::EncryptKeyConfig, Mixins::GlobalConfig, Mixins::SSLConfig
Defined in:
lib/ruby_easy_rsa/commands/set_ec_pass.rb

Instance Attribute Summary

Attributes inherited from Base

#binary

Instance Method Summary collapse

Methods inherited from Base

#do_after, #do_before, #execute, #initialize, #instantiate_builder, #stderr, #stdin, #stdout

Constructor Details

This class inherits a constructor from RubyEasyRSA::Commands::Base

Instance Method Details

#configure_command(builder, opts) ⇒ Object



17
18
19
20
21
22
23
24
25
26
# File 'lib/ruby_easy_rsa/commands/set_ec_pass.rb', line 17

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

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