Class: PolyglotFlutter::Command::Login

Inherits:
Object
  • Object
show all
Includes:
Helper::Terminal
Defined in:
lib/flutter_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/flutter_polyglot_cli/commands/login.rb', line 6

def self.init
  new.call
end

Instance Method Details

#callObject



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

def call
  PolyglotFlutter::IO::Token.write(token)
end