Sha256: 871a7d3c12e5a64f5312c177b58c73a9642b1c2c6de8077a662b6a4f9a249e45

Contents?: true

Size: 626 Bytes

Versions: 6

Compression:

Stored size: 626 Bytes

Contents

# frozen_string_literal: true

module RubyEasyRSA
  module Commands
    module Mixins
      module CopyExtensionsConfig
        private

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

        def with_copy_extensions(builder, copy_extensions)
          return builder unless copy_extensions

          builder.with_flag('--copy-ext')
        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/copy_extensions_config.rb
ruby_easy_rsa-0.14.0.pre.1 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb
ruby_easy_rsa-0.13.0 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb
ruby_easy_rsa-0.12.0.pre.7 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb
ruby_easy_rsa-0.12.0.pre.6 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb
ruby_easy_rsa-0.12.0.pre.5 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb