Sha256: 09c1553ea7857d0d6543e478dec385a9f500d9860cc81fa55b6e588bd015947e
Contents?: true
Size: 361 Bytes
Versions: 3
Compression:
Stored size: 361 Bytes
Contents
module Rancher module Api class Configuration attr_accessor :url attr_accessor :access_key attr_accessor :secret_key def initialize @url = "#{ENV['RANCHER_URL']}/v1/" if ENV['RANCHER_URL'].present? @access_key = ENV['RANCHER_ACCESS_KEY'] @secret_key = ENV['RANCHER_SECRET_KEY'] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rancher-api-0.4.0 | lib/rancher/api/configuration.rb |
rancher-api-0.3.8 | lib/rancher/api/configuration.rb |
rancher-api-0.3.7 | lib/rancher/api/configuration.rb |