Module: Vcloud::Core::Fog::Login
- Defined in:
- lib/vcloud/core/fog/login.rb
Class Method Summary collapse
Class Method Details
.token(pass) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/vcloud/core/fog/login.rb', line 8 def token(pass) Vcloud::Core::Fog.check_credentials token = get_token(pass) return token end |
.token_export(*args) ⇒ Object
15 16 17 |
# File 'lib/vcloud/core/fog/login.rb', line 15 def token_export(*args) return "export #{Vcloud::Core::Fog::TOKEN_ENV_VAR_NAME}=#{token(*args)}" end |