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
- #mapping(*args) ⇒ Object
- #me ⇒ Object
- #publish(*args) ⇒ Object
- #upgrade ⇒ Object
- #version ⇒ Object
Instance Method Details
#build_apk(*args) ⇒ Object
59 60 61 62 63 |
# File 'lib/fir/cli.rb', line 59 def build_apk(*args) prepare :build_apk FIR.build_apk(*args, ) end |
#build_ipa(*args) ⇒ Object
37 38 39 40 41 |
# File 'lib/fir/cli.rb', line 37 def build_ipa(*args) prepare :build_ipa FIR.build_ipa(*args, ) end |
#help(command = nil, subcommand = false) ⇒ Object
147 148 149 |
# File 'lib/fir/cli.rb', line 147 def help(command = nil, subcommand = false) super end |
#info(*args) ⇒ Object
68 69 70 71 72 |
# File 'lib/fir/cli.rb', line 68 def info(*args) prepare :info FIR.info(*args, ) end |
#login(*args) ⇒ Object
98 99 100 101 102 103 |
# File 'lib/fir/cli.rb', line 98 def login(*args) prepare :login token = [:token] || args.first || ask('Please enter your fir.im API Token:', :white, echo: true) FIR.login(token) end |
#mapping(*args) ⇒ Object
124 125 126 127 128 |
# File 'lib/fir/cli.rb', line 124 def mapping(*args) prepare :mapping FIR.mapping(*args, ) end |
#publish(*args) ⇒ Object
90 91 92 93 94 |
# File 'lib/fir/cli.rb', line 90 def publish(*args) prepare :publish FIR.publish(*args, ) end |
#upgrade ⇒ Object
132 133 134 135 136 137 |
# File 'lib/fir/cli.rb', line 132 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 |