Class: FIR::CLI

Inherits:
Thor show all
Defined in:
lib/fir/cli.rb

Instance Method Summary collapse

Instance Method Details

#build_apk(*args) ⇒ Object



61
62
63
64
65
# File 'lib/fir/cli.rb', line 61

def build_apk(*args)
  prepare :build_apk

  FIR.build_apk(*args, options)
end

#build_ipa(*args) ⇒ Object



38
39
40
41
42
# File 'lib/fir/cli.rb', line 38

def build_ipa(*args)
  prepare :build_ipa

  FIR.build_ipa(*args, options)
end

#help(command = nil, subcommand = false) ⇒ Object



149
150
151
# File 'lib/fir/cli.rb', line 149

def help(command = nil, subcommand = false)
  super
end

#info(*args) ⇒ Object



70
71
72
73
74
# File 'lib/fir/cli.rb', line 70

def info(*args)
  prepare :info

  FIR.info(*args, options)
end

#login(*args) ⇒ Object



100
101
102
103
104
105
# File 'lib/fir/cli.rb', line 100

def (*args)
  prepare :login

  token = options[:token] || args.first || ask('Please enter your fir.im API Token:', :white, echo: true)
  FIR.(token)
end

#mapping(*args) ⇒ Object



126
127
128
129
130
# File 'lib/fir/cli.rb', line 126

def mapping(*args)
  prepare :mapping

  FIR.mapping(*args, options)
end

#meObject



108
109
110
111
112
# File 'lib/fir/cli.rb', line 108

def me
  prepare :me

  FIR.me
end

#publish(*args) ⇒ Object



92
93
94
95
96
# File 'lib/fir/cli.rb', line 92

def publish(*args)
  prepare :publish

  FIR.publish(*args, options)
end

#upgradeObject



134
135
136
137
138
139
# File 'lib/fir/cli.rb', line 134

def upgrade
  prepare :upgrade

  say '✈ Upgrade fir-cli (use `gem install fir-cli --no-ri --no-rdoc`)'
  say `gem install fir-cli --no-ri --no-rdoc`
end

#versionObject



143
144
145
# File 'lib/fir/cli.rb', line 143

def version
  say "✈ fir-cli #{FIR::VERSION}"
end