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
32 33 34 35 36 |
# File 'lib/fir/cli.rb', line 32 def build_ipa *args prepare :build_ipa FIR.build_ipa(*args, ) end |
#help(command = nil, subcommand = false) ⇒ Object
82 83 84 |
# File 'lib/fir/cli.rb', line 82 def help command = nil, subcommand = false super end |
#info(*args) ⇒ Object
41 42 43 44 45 |
# File 'lib/fir/cli.rb', line 41 def info *args prepare :info FIR.info(*args, ) end |
#login(*args) ⇒ Object
59 60 61 62 63 64 |
# File 'lib/fir/cli.rb', line 59 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
51 52 53 54 55 |
# File 'lib/fir/cli.rb', line 51 def publish *args prepare :publish FIR.publish(*args, ) end |
#upgrade ⇒ Object
68 69 70 71 72 |
# File 'lib/fir/cli.rb', line 68 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 |