Sha256: 7da0cbc205e4d857c072e912e11b0462c65ed71d50a1dd342477fbe922cc78d2
Contents?: true
Size: 922 Bytes
Versions: 3
Compression:
Stored size: 922 Bytes
Contents
module Fog module Storage class K5 class Real include Utils include Fog::K5::Shared attr_reader :k5_region, :k5_project_id def initialize(options = {}) refresh_credentials(options) url = build_url(url_type: K5_STORAGE_URL_TYPE) @connection = Fog::Core::Connection.new(url, false, params) end private def refresh_credentials(options) @k5_region = options[:k5_region] @k5_project_id = options[:k5_project_id] @k5_domain_name = options[:k5_domain_name] @k5_user_name = options[:k5_user_name] @k5_user_password = options[:k5_user_password] end def params { path_prefix: "#{K5_STORAGE_URL_VERSION}/AUTH_#{@k5_project_id}", query: { format: :json }, } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fog-k5-0.1.5 | lib/fog/storage/k5/real.rb |
fog-k5-0.1.4 | lib/fog/storage/k5/real.rb |
fog-k5-0.1.3 | lib/fog/storage/k5/real.rb |