Class: FIR::CLI
Instance Method Summary collapse
- #build_ipa(*args) ⇒ Object
- #help(command = nil, subcommand = false) ⇒ Object
- #info(*args) ⇒ Object
- #login(*args) ⇒ Object
- #publish(*args) ⇒ Object
- #upgrade ⇒ Object
- #version ⇒ Object
Instance Method Details
#build_ipa(*args) ⇒ Object
33 34 35 36 37 |
# File 'lib/fir/cli.rb', line 33 def build_ipa *args prepare :build_ipa FIR.build_ipa(*args, ) end |
#help(command = nil, subcommand = false) ⇒ Object
83 84 85 |
# File 'lib/fir/cli.rb', line 83 def help command = nil, subcommand = false super end |
#info(*args) ⇒ Object
42 43 44 45 46 |
# File 'lib/fir/cli.rb', line 42 def info *args prepare :info FIR.info(*args, ) end |
#login(*args) ⇒ Object
60 61 62 63 64 65 |
# File 'lib/fir/cli.rb', line 60 def login *args prepare :login token = [:token] || args.first || ask("Please enter your FIR.im token:", :white, echo: true) FIR.login(token) end |
#publish(*args) ⇒ Object
52 53 54 55 56 |
# File 'lib/fir/cli.rb', line 52 def publish *args prepare :publish FIR.publish(*args, ) end |
#upgrade ⇒ Object
69 70 71 72 73 |
# File 'lib/fir/cli.rb', line 69 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
77 78 79 |
# File 'lib/fir/cli.rb', line 77 def version say "✈ FIR-CLI #{FIR::VERSION}" end |