Class: Zillabyte::Command::Auth

Inherits:
Base
  • Object
show all
Defined in:
lib/zillabyte/cli/auth.rb

Overview

manage zillabyte accounts

Constant Summary

Constants inherited from Base

Base::META_COLUMNS

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods inherited from Base

alias_command, #api, extract_banner, extract_description, extract_help, extract_help_from_caller, extract_options, extract_summary, inherited, #initialize, method_added, namespace

Methods included from Helpers

#add_git_remote, #app, #ask, #create_git_remote, #display, #error, #extract_app_from_git_config, #extract_app_in_dir, #format_with_bang, #get_flow_name, #git, #handle_downloading_manifest, #has_git?, #longest, #read_multiline, #with_tty

Constructor Details

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

Instance Method Details

#login ⇒ Object

auth:login

Set the authentication token.



14
15
16
# File 'lib/zillabyte/cli/auth.rb', line 14

def 
  Zillabyte::Auth.ask_for_and_save_credentials
end

#logout ⇒ Object

auth:logout

Clear the authentication token.



24
25
26
# File 'lib/zillabyte/cli/auth.rb', line 24

def logout
  Zillabyte::Auth.logout
end