Module: Superbot::Cloud::Validations
- Included in:
- CLI::LoginRequiredCommand
- Defined in:
- lib/superbot/cloud/cli/validations.rb
Instance Method Summary collapse
Instance Method Details
#require_login ⇒ Object
6 7 8 9 10 |
# File 'lib/superbot/cloud/cli/validations.rb', line 6 def require_login return if Superbot::Cloud.credentials || ENV['SUPERBOT_TOKEN'] abort "You are not logged in, use `superbot cloud login` to login" end |