Sha256: e34165f21c838ce251dbf51d0e304f659bf43c0fca2417eb4cc2225d183c1464

Contents?: true

Size: 621 Bytes

Versions: 8

Compression:

Stored size: 621 Bytes

Contents

# frozen_string_literal: true

module RubyEasyRSA
  module Commands
    module Mixins
      module CopyExtensionsConfig
        # rubocop:disable Style/RedundantAssignment
        def configure_command(builder, opts)
          builder = super(builder, opts)
          builder = with_copy_extensions(builder, opts[:copy_extensions])
          builder
        end
        # rubocop:enable Style/RedundantAssignment

        private

        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

8 entries across 8 versions & 1 rubygems

Version Path
ruby_easy_rsa-0.12.0.pre.4 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb
ruby_easy_rsa-0.12.0.pre.3 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb
ruby_easy_rsa-0.12.0.pre.2 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb
ruby_easy_rsa-0.12.0.pre.1 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb
ruby_easy_rsa-0.11.0 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb
ruby_easy_rsa-0.10.0.pre.10 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb
ruby_easy_rsa-0.10.0.pre.9 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb
ruby_easy_rsa-0.10.0.pre.8 lib/ruby_easy_rsa/commands/mixins/copy_extensions_config.rb