Class: Spacialdb::Command::Auth

Inherits:
Base
  • Object
show all
Defined in:
lib/spacialdb/command/auth.rb

Overview

authentication (signup, login, logout)

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize, namespace, #spacialdb

Methods included from Helpers

#ask, #confirm_command, #display, #echo_off, #echo_on, #error, #home_directory, #json_decode, #json_encode, #longest, #redisplay

Constructor Details

This class inherits a constructor from Spacialdb::Command::Base

Instance Method Details

#loginObject

auth:login

log in with your Spacialdb credentials



21
22
23
# File 'lib/spacialdb/command/auth.rb', line 21

def 
  Spacialdb::Auth.
end

#logoutObject

auth:logout

clear local authentication credentials



31
32
33
# File 'lib/spacialdb/command/auth.rb', line 31

def logout
  Spacialdb::Auth.logout
end

#signupObject

auth:signup

sign up for a free plan with Spacialdb



11
12
13
# File 'lib/spacialdb/command/auth.rb', line 11

def 
  Spacialdb::Auth.
end