Class: Armrest::CLI::Auth
- Inherits:
-
Object
- Object
- Armrest::CLI::Auth
- Defined in:
- lib/armrest/cli/auth.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Auth
constructor
A new instance of Auth.
- #run ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Auth
Returns a new instance of Auth.
3 4 5 |
# File 'lib/armrest/cli/auth.rb', line 3 def initialize(={}) = end |
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/armrest/cli/auth.rb', line 7 def run provider = Armrest::Auth.new().provider if provider puts JSON.pretty_generate(provider.creds) else puts "Unable to authenticate" end end |