Class: Zillabyte::Command::Auth

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

Overview

manage zillabyte accounts

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods inherited from Base

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

Methods included from Helpers

#ask, #display, #error, #format_with_bang, #longest, #read_multiline, #with_tty

Constructor Details

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

Instance Method Details

#login ⇒ Object

auth:login

Sets the Zillabyte Auth token



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

def 
  Zillabyte::Auth.
end

#logout ⇒ Object

auth:logout

Sets the Zillabyte Auth token



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

def logout
  Zillabyte::Auth.logout
end