Sha256: 8d0e82df82da4ddeec31bec93d8df281d2cf5858bded9051d2d7e84c2100cbe5

Contents?: true

Size: 697 Bytes

Versions: 1

Compression:

Stored size: 697 Bytes

Contents

# frozen_string_literal: true

module RubyVault
  module Options
    HTTP_DEFINITIONS = [
      %w[
        -address
        -agent-address
        -ca-cert
        -ca-path
        -client-cert
        -client-key
        -mfa
        -namespace
        -tls-server-name
        -unlock-key
      ].map do |o|
        definition(name: o, option_type: :standard, value_type: :string)
      end
    ].flatten.freeze

    OTHER_DEFINITIONS = [
      # string options
      %w[
        -method
      ].map do |o|
        definition(name: o, option_type: :standard, value_type: :string)
      end
    ].flatten.freeze

    DEFINITIONS = (HTTP_DEFINITIONS + OTHER_DEFINITIONS).flatten.freeze
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_vault-0.1.0.pre.11 lib/ruby_vault/options/definitions.rb