Class: PolyglotIos::Command::Login

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helper::Terminal

#generate_token_message, #prompt, #success

Constructor Details

#initialize(options = Commander::Command::Options.new) ⇒ Login

Returns a new instance of Login.



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

def initialize(options = Commander::Command::Options.new)
  @options = options
end

Class Method Details

.init(options = Commander::Command::Options.new) ⇒ Object



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

def self.init(options = Commander::Command::Options.new)
  new(options).call
end

Instance Method Details

#callObject



14
15
16
17
# File 'lib/ios_polyglot_cli/commands/login.rb', line 14

def call
  prompt.error("Login command removed!\n")
  prompt.warn(generate_token_message())
end