Sha256: 79e7bfe152930543806678e691a29f3c4fc7014f3dc91d90575ed8f294db6f64
Contents?: true
Size: 934 Bytes
Versions: 2
Compression:
Stored size: 934 Bytes
Contents
require 'yao' require 'yaml' module Kaname class Config @@username = String.new @@ca_cert = nil @@client_key = nil @@client_cert = nil def self.setup setup_yao end def self.username @@username end private def self.setup_yao Yao.configure do auth_url ENV['OS_AUTH_URL'] tenant_name ENV['OS_TENANT_NAME'] username ENV['OS_USERNAME'] password ENV['OS_PASSWORD'] ca_cert ENV['OS_CACERT'] client_cert ENV['OS_CERT'] client_key ENV['OS_KEY'] region_name ENV['OS_REGION_NAME'] identity_api_version ENV['OS_IDENTITY_API_VERSION'] user_domain_name ENV['OS_USER_DOMAIN_NAME'] project_domain_name ENV['OS_PROJECT_DOMAIN_NAME'] debug ENV['YAO_DEBUG'] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kaname-0.10.0 | lib/kaname/config.rb |
kaname-0.9.0 | lib/kaname/config.rb |