Class: FIR::CLI
Instance Method Summary collapse
- #build_apk(*args) ⇒ Object
- #build_ipa(*args) ⇒ Object
- #help(command = nil, subcommand = false) ⇒ Object
- #info(*args) ⇒ Object
- #login(*args) ⇒ Object
- #me ⇒ Object
- #publish(*args) ⇒ Object
- #upgrade ⇒ Object
- #version ⇒ Object
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, ) 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, ) end |
#help(command = nil, subcommand = false) ⇒ Object
187 188 189 |
# File 'lib/fir/cli.rb', line 187 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, ) end |
#login(*args) ⇒ Object
156 157 158 159 160 161 |
# File 'lib/fir/cli.rb', line 156 def login(*args) prepare :login token = [:token] || args.first || ask('Please enter your fir.im API Token:', :white, echo: true) FIR.login(token) end |
#publish(*args) ⇒ Object
149 150 151 152 |
# File 'lib/fir/cli.rb', line 149 def publish(*args) prepare :publish FIR.publish(*args, ) end |
#upgrade ⇒ Object
172 173 174 175 176 177 |
# File 'lib/fir/cli.rb', line 172 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 |