Class: FIR::CLI

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

Instance Method Summary collapse

Instance Method Details

#build_apk(*args) ⇒ Object



78
79
80
81
82
# File 'lib/fir/cli.rb', line 78

def build_apk(*args)
  prepare :build_apk

  FIR.build_apk(*args, options)
end

#build_ipa(*args) ⇒ Object



47
48
49
50
51
# File 'lib/fir/cli.rb', line 47

def build_ipa(*args)
  prepare :build_ipa

  FIR.build_ipa(*args, options)
end

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



173
174
175
# File 'lib/fir/cli.rb', line 173

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

#info(*args) ⇒ Object



87
88
89
90
91
# File 'lib/fir/cli.rb', line 87

def info(*args)
  prepare :info

  FIR.info(*args, options)
end

#login(*args) ⇒ Object



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

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



150
151
152
153
154
# File 'lib/fir/cli.rb', line 150

def mapping(*args)
  prepare :mapping

  FIR.mapping(*args, options)
end

#meObject



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

def me
  prepare :me

  FIR.me
end

#publish(*args) ⇒ Object



116
117
118
119
120
# File 'lib/fir/cli.rb', line 116

def publish(*args)
  prepare :publish

  FIR.publish(*args, options)
end

#upgradeObject



158
159
160
161
162
163
# File 'lib/fir/cli.rb', line 158

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



167
168
169
# File 'lib/fir/cli.rb', line 167

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