Class: FIR::CLI
Instance Method Summary collapse
- #build_apk(*args) ⇒ Object
- #build_ipa(*args) ⇒ Object
- #dingtalk(*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
80 81 82 83 84 |
# File 'lib/fir/cli.rb', line 80 def build_apk(*args) prepare :build_apk FIR.build_apk(*args, ) end |
#build_ipa(*args) ⇒ Object
48 49 50 51 52 |
# File 'lib/fir/cli.rb', line 48 def build_ipa(*args) prepare :build_ipa FIR.build_ipa(*args, ) end |
#dingtalk(*args) ⇒ Object
133 134 135 136 137 |
# File 'lib/fir/cli.rb', line 133 def dingtalk(*args) prepare :dingtalk FIR.dingtalk(*args, ) end |
#help(command = nil, subcommand = false) ⇒ Object
178 179 180 |
# File 'lib/fir/cli.rb', line 178 def help(command = nil, subcommand = false) super end |
#info(*args) ⇒ Object
89 90 91 92 93 |
# File 'lib/fir/cli.rb', line 89 def info(*args) prepare :info FIR.info(*args, ) end |
#login(*args) ⇒ Object
147 148 149 150 151 152 |
# File 'lib/fir/cli.rb', line 147 def login(*args) prepare :login token = [:token] || args.first || ask('Please enter your fir.im API Token:', :white, echo: true) FIR.login(token) end |
#me ⇒ Object
155 156 157 158 159 |
# File 'lib/fir/cli.rb', line 155 def me prepare :me FIR.me end |
#publish(*args) ⇒ Object
122 123 124 125 126 |
# File 'lib/fir/cli.rb', line 122 def publish(*args) prepare :publish FIR.publish(*args, ) end |
#upgrade ⇒ Object
163 164 165 166 167 168 |
# File 'lib/fir/cli.rb', line 163 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
172 173 174 |
# File 'lib/fir/cli.rb', line 172 def version say "✈ fir-cli #{FIR::VERSION}" end |