Class: Magellan::Cli::Command

Inherits:
Base
  • Object
show all
Defined in:
lib/magellan/cli/command.rb

Instance Method Summary collapse

Instance Method Details

#loginObject



29
30
31
32
33
34
35
36
37
# File 'lib/magellan/cli/command.rb', line 29

def 
  print "email: "
  email = STDIN.gets.chomp
  print "password: "
  password = STDIN.noecho(&:gets).chomp
  puts ""

  Magellan::Cli::Http.new.login!(email, password)
end

#versionObject



40
41
42
# File 'lib/magellan/cli/command.rb', line 40

def version
  $stdout.puts Magellan::Cli::VERSION
end