Class: RooOnRails::Checks::Heroku::Login
- Inherits:
-
Base
- Object
- Base
- RooOnRails::Checks::Heroku::Login
show all
- Defined in:
- lib/roo_on_rails/checks/heroku/login.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, requires, #run
#bold, included
Instance Method Details
#call ⇒ Object
14
15
16
17
18
19
20
21
|
# File 'lib/roo_on_rails/checks/heroku/login.rb', line 14
def call
status, email = shell.run "heroku whoami"
if status
pass "logged in as #{bold email.strip}"
else
fail! "not logged in"
end
end
|
#fix ⇒ Object
23
24
25
|
# File 'lib/roo_on_rails/checks/heroku/login.rb', line 23
def fix
shell.run! "heroku auth:login --sso"
end
|
#intro ⇒ Object
10
11
12
|
# File 'lib/roo_on_rails/checks/heroku/login.rb', line 10
def intro
"Checking if you're signed in to Heroku..."
end
|