Class: FIR::CLI

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

Instance Method Summary collapse

Instance Method Details

#build_apk(*args) ⇒ Object



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

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



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

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

#info(*args) ⇒ Object



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

def info(*args)
  prepare :info

  FIR.info(*args, options)
end

#login(*args) ⇒ Object



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

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



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

def mapping(*args)
  prepare :mapping

  FIR.mapping(*args, options)
end

#meObject



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

def me
  prepare :me

  FIR.me
end

#publish(*args) ⇒ Object



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

def publish(*args)
  prepare :publish

  FIR.publish(*args, options)
end

#upgradeObject



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

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



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

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