Sha256: cf3bb7ca037eb16212f0814060e6560837681c33be32b85685323fe5ee2cebea

Contents?: true

Size: 606 Bytes

Versions: 21

Compression:

Stored size: 606 Bytes

Contents

module RubyEasyRSA
  module Commands
    module Mixins
      module AlgorithmConfig
        def configure_command(builder, opts)
          algorithm = opts[:algorithm]
          curve = opts[:curve]
          ec_directory = opts[:ec_directory]

          builder = super(builder, opts)
          builder = builder.with_environment_variable(
              'EASYRSA_EC_DIR', ec_directory) if ec_directory
          builder = builder.with_option('--use-algo', algorithm) if algorithm
          builder = builder.with_option('--curve', curve) if curve
          builder
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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