Class: Rightscaler::Account

Inherits:
Resource
  • Object
show all
Defined in:
lib/rightscaler/account.rb

Constant Summary

Constants inherited from Resource

Resource::API_VERSION

Class Method Summary collapse

Methods inherited from Resource

account_id=, #id

Class Method Details

.authenticateObject



7
8
9
10
# File 'lib/rightscaler/account.rb', line 7

def self.authenticate
  auth_cookie = extract_session_cookie(connection.head(site.to_s + "/login", headers))
  set_auth_cookie(auth_cookie)
end


3
4
5
# File 'lib/rightscaler/account.rb', line 3

def self.set_auth_cookie(cookie)
  Rightscaler::Resource.headers['cookie'] = cookie
end