Sha256: d45341a4010dcbab5d79d4f1f1799d50c63b4ec148bb200c29dcc7b1b1511d75

Contents?: true

Size: 649 Bytes

Versions: 6

Compression:

Stored size: 649 Bytes

Contents

# frozen_string_literal: true

module RubyEasyRSA
  module Commands
    module Mixins
      module SubCAConfig
        private

        # rubocop:disable Style/RedundantAssignment
        def configure_command(initial_builder, parameters)
          builder = super
          builder = with_sub_ca_length(builder, parameters[:sub_ca_length])
          builder
        end
        # rubocop:enable Style/RedundantAssignment

        def with_sub_ca_length(builder, sub_ca_length)
          return builder unless sub_ca_length

          builder.with_option(
            '--subca-len', sub_ca_length
          )
        end
      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/mixins/sub_ca_config.rb
ruby_easy_rsa-0.14.0.pre.1 lib/ruby_easy_rsa/commands/mixins/sub_ca_config.rb
ruby_easy_rsa-0.13.0 lib/ruby_easy_rsa/commands/mixins/sub_ca_config.rb
ruby_easy_rsa-0.12.0.pre.7 lib/ruby_easy_rsa/commands/mixins/sub_ca_config.rb
ruby_easy_rsa-0.12.0.pre.6 lib/ruby_easy_rsa/commands/mixins/sub_ca_config.rb
ruby_easy_rsa-0.12.0.pre.5 lib/ruby_easy_rsa/commands/mixins/sub_ca_config.rb