Class: Octopolo::Scripts::PivotalAuth
- Inherits:
-
Object
- Object
- Octopolo::Scripts::PivotalAuth
- Includes:
- CLIWrapper, UserConfigWrapper
- Defined in:
- lib/octopolo/scripts/pivotal_auth.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#password ⇒ Object
Returns the value of attribute password.
-
#token ⇒ Object
Returns the value of attribute token.
Attributes included from CLIWrapper
Attributes included from UserConfigWrapper
Instance Method Summary collapse
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
10 11 12 |
# File 'lib/octopolo/scripts/pivotal_auth.rb', line 10 def email @email end |
#password ⇒ Object
Returns the value of attribute password.
11 12 13 |
# File 'lib/octopolo/scripts/pivotal_auth.rb', line 11 def password @password end |
#token ⇒ Object
Returns the value of attribute token.
12 13 14 |
# File 'lib/octopolo/scripts/pivotal_auth.rb', line 12 def token @token end |
Instance Method Details
#execute ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/octopolo/scripts/pivotal_auth.rb', line 14 def execute ask_credentials request_token store_token rescue Pivotal::BadCredentials => e cli.say e. end |