Module: Superbot::Cloud::Validations

Included in:
CLI::LoginRequiredCommand
Defined in:
lib/superbot/cloud/cli/validations.rb

Instance Method Summary collapse

Instance Method Details

#require_loginObject



6
7
8
9
10
# File 'lib/superbot/cloud/cli/validations.rb', line 6

def 
  return if Superbot::Cloud.credentials || ENV['SUPERBOT_TOKEN']

  abort "You are not logged in, use `superbot cloud login` to login"
end