Class: PolyglotCli::Command::Login

Inherits:
Object
  • Object
show all
Includes:
Helper::Terminal
Defined in:
lib/polyglot_cli/commands/login.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helper::Terminal

#prompt, #success

Class Method Details

.initObject



6
7
8
# File 'lib/polyglot_cli/commands/login.rb', line 6

def self.init
  new.call
end

Instance Method Details

#callObject



10
11
12
13
# File 'lib/polyglot_cli/commands/login.rb', line 10

def call
  PolyglotCli::IO::Token.write(token)
  success
end