Sha256: 09900582646bd7ab64c2ae6223eb4a1999cb3f1f7ce4bb9616005774cc17458e

Contents?: true

Size: 692 Bytes

Versions: 8

Compression:

Stored size: 692 Bytes

Contents

# frozen_string_literal: true

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

        private

        def with_inline_credentials_file(builder, inline_credentials_file)
          return builder unless inline_credentials_file

          builder.with_argument('inline')
        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/inline_credentials_file_config.rb
ruby_easy_rsa-0.12.0.pre.3 lib/ruby_easy_rsa/commands/mixins/inline_credentials_file_config.rb
ruby_easy_rsa-0.12.0.pre.2 lib/ruby_easy_rsa/commands/mixins/inline_credentials_file_config.rb
ruby_easy_rsa-0.12.0.pre.1 lib/ruby_easy_rsa/commands/mixins/inline_credentials_file_config.rb
ruby_easy_rsa-0.11.0 lib/ruby_easy_rsa/commands/mixins/inline_credentials_file_config.rb
ruby_easy_rsa-0.10.0.pre.10 lib/ruby_easy_rsa/commands/mixins/inline_credentials_file_config.rb
ruby_easy_rsa-0.10.0.pre.9 lib/ruby_easy_rsa/commands/mixins/inline_credentials_file_config.rb
ruby_easy_rsa-0.10.0.pre.8 lib/ruby_easy_rsa/commands/mixins/inline_credentials_file_config.rb