Sha256: b51e66546433b43e3922a6f388388b06c5f25f068f11d4489bff5ab176bd0de0

Contents?: true

Size: 390 Bytes

Versions: 4

Compression:

Stored size: 390 Bytes

Contents

module Rancher
  module Api
    class Configuration
      attr_accessor :url
      attr_accessor :access_key
      attr_accessor :secret_key
      attr_accessor :verbose

      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

4 entries across 4 versions & 1 rubygems

Version Path
rancher-api-0.6.0 lib/rancher/api/configuration.rb
rancher-api-0.5.2 lib/rancher/api/configuration.rb
rancher-api-0.5.1 lib/rancher/api/configuration.rb
rancher-api-0.5.0 lib/rancher/api/configuration.rb