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.2.0.pre.6 lib/ruby_easy_rsa/commands/mixins/algorithm_config.rb