class Armrest::CLI::Auth
Public Class Methods
new(options={})
click to toggle source
# File lib/armrest/cli/auth.rb, line 3 def initialize(options={}) @options = options end
Public Instance Methods
run()
click to toggle source
# File lib/armrest/cli/auth.rb, line 7 def run provider = Armrest::Auth.new(@options).provider if provider puts JSON.pretty_generate(provider.creds) else puts "Unable to authenticate" end end