lib/rancher/api/configuration.rb in rancher-api-0.3.5 vs lib/rancher/api/configuration.rb in rancher-api-0.3.6

- old
+ new

@@ -2,8 +2,14 @@ module Api class Configuration attr_accessor :url attr_accessor :access_key attr_accessor :secret_key + + def initialize + @url = ENV['RANCHER_URL'] + @access_key = ENV['RANCHER_ACCESS_KEY'] + @secret_key = ENV['RANCHER_SECRET_KEY'] + end end end end