Sha256: 72fe371443cbd3ca98b9ccf177a02088edb1fe1d515cbca3142079c1880ccf8e
Contents?: true
Size: 1.72 KB
Versions: 1
Compression:
Stored size: 1.72 KB
Contents
# frozen_string_literal: true module RubyVault module Options HTTP_DEFINITIONS = [ # key-value repeatable options %w[-header].map do |o| definition( name: o, option_type: :standard, value_type: :string, repeatable: true, override_keys: { singular: false, plural: :headers } ) end, # string options %w[ -address -agent-address -ca-cert -ca-path -client-cert -client-key -mfa -namespace -tls-server-name -unlock-key -wrap-ttl ].map do |o| definition(name: o, option_type: :standard, value_type: :string) end, # flag options %w[ -non-interactive -output-curl-string -output-policy -policy-override -tls-skip-verify ].map do |o| definition(name: o, option_type: :flag, value_type: :boolean) end ].flatten.freeze OUTPUT_DEFINITIONS = [ # string options %w[ -field -format ].map do |o| definition(name: o, option_type: :standard, value_type: :string) end ].flatten.freeze OTHER_DEFINITIONS = [ # string options %w[ -method -path ].map do |o| definition(name: o, option_type: :standard, value_type: :string) end, # flag options %w[ -no-print -no-store -token-only ].map do |o| definition(name: o, option_type: :flag, value_type: :boolean) end ].flatten.freeze DEFINITIONS = ( HTTP_DEFINITIONS + OUTPUT_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.14 | lib/ruby_vault/options/definitions.rb |