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
72 73 74 75 76 |
# File 'lib/fir/cli.rb', line 72 def build_apk(*args) prepare :build_apk FIR.build_apk(*args, ) end |
#build_ipa(*args) ⇒ Object
43 44 45 46 47 |
# File 'lib/fir/cli.rb', line 43 def build_ipa(*args) prepare :build_ipa FIR.build_ipa(*args, ) end |
#help(command = nil, subcommand = false) ⇒ Object
164 165 166 |
# File 'lib/fir/cli.rb', line 164 def help(command = nil, subcommand = false) super end |
#info(*args) ⇒ Object
81 82 83 84 85 |
# File 'lib/fir/cli.rb', line 81 def info(*args) prepare :info FIR.info(*args, ) end |
#login(*args) ⇒ Object
115 116 117 118 119 120 |
# File 'lib/fir/cli.rb', line 115 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
141 142 143 144 145 |
# File 'lib/fir/cli.rb', line 141 def mapping(*args) prepare :mapping FIR.mapping(*args, ) end |
#me ⇒ Object
123 124 125 126 127 |
# File 'lib/fir/cli.rb', line 123 def me prepare :me FIR.me end |
#publish(*args) ⇒ Object
107 108 109 110 111 |
# File 'lib/fir/cli.rb', line 107 def publish(*args) prepare :publish FIR.publish(*args, ) end |
#upgrade ⇒ Object
149 150 151 152 153 154 |
# File 'lib/fir/cli.rb', line 149 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 |
#version ⇒ Object
158 159 160 |
# File 'lib/fir/cli.rb', line 158 def version say "✈ fir-cli #{FIR::VERSION}" end |