░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/vendor/bundle/ruby/3.1.0/gems/vault-0.15.0/lib
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: vault.rb
module Vault require_relative "vault/errors" require_relative "vault/client" require_relative "vault/configurable" require_relative "vault/defaults" require_relative "vault/response" require_relative "vault/version" require_relative "vault/api" class << self # API client object based off the configured options in {Configurable}. # # @return [Vault::Client] attr_reader :client def setup! @client = Vault::Client.new # Set secure SSL options OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:options].tap do |opts| opts &= ~OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS if defined?(OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS) opts |= OpenSSL::SSL::OP_NO_COMPRESSION if defined?(OpenSSL::SSL::OP_NO_COMPRESSION) opts |= OpenSSL::SSL::OP_NO_SSLv2 if defined?(OpenSSL::SSL::OP_NO_SSLv2) opts |= OpenSSL::SSL::OP_NO_SSLv3 if defined?(OpenSSL::SSL::OP_NO_SSLv3) end self end # Delegate all methods to the client object, essentially making the module # object behave like a {Client}. def method_missing(m, *args, &block) if @client.respond_to?(m) @client.send(m, *args, &block) else super end end # Delegating +respond_to+ to the {Client}. def respond_to_missing?(m, include_private = false) @client.respond_to?(m, include_private) || super end end end # Load the initial default values Vault.setup!
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 vault/
DIR
—
2023-09-24 03:48
📄 vault.rb
RB
1.4 KB
2023-09-24 03:48
EDIT