Class: FIR::CLI

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

Instance Method Summary collapse

Instance Method Details

#build_apk(*args) ⇒ Object



67
68
69
70
71
# File 'lib/fir/cli.rb', line 67

def build_apk(*args)
  prepare :build_apk

  FIR.build_apk(*args, options)
end

#build_ipa(*args) ⇒ Object



41
42
43
44
45
# File 'lib/fir/cli.rb', line 41

def build_ipa(*args)
  prepare :build_ipa

  FIR.build_ipa(*args, options)
end

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



155
156
157
# File 'lib/fir/cli.rb', line 155

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

#info(*args) ⇒ Object



76
77
78
79
80
# File 'lib/fir/cli.rb', line 76

def info(*args)
  prepare :info

  FIR.info(*args, options)
end

#login(*args) ⇒ Object



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

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



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

def mapping(*args)
  prepare :mapping

  FIR.mapping(*args, options)
end

#meObject



114
115
116
117
118
# File 'lib/fir/cli.rb', line 114

def me
  prepare :me

  FIR.me
end

#publish(*args) ⇒ Object



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

def publish(*args)
  prepare :publish

  FIR.publish(*args, options)
end

#upgradeObject



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

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



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

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