Class: Pushapp::CLI
- Inherits:
-
Thor
- Object
- Thor
- Pushapp::CLI
- Defined in:
- lib/pushapp/cli.rb
Instance Method Summary collapse
- #init ⇒ Object
- #remotes ⇒ Object
- #setup(*remotes) ⇒ Object
- #ssh(remote = nil) ⇒ Object
- #tasks(*remotes) ⇒ Object
- #trigger(event, *remotes) ⇒ Object
- #update(*remotes) ⇒ Object
- #update_refs ⇒ Object
Instance Method Details
#init ⇒ Object
12 13 14 |
# File 'lib/pushapp/cli.rb', line 12 def init Pushapp::Commands.run(:init) end |
#remotes ⇒ Object
44 45 46 |
# File 'lib/pushapp/cli.rb', line 44 def remotes Pushapp::Commands.run(:list_remotes, options: ) end |
#setup(*remotes) ⇒ Object
20 21 22 |
# File 'lib/pushapp/cli.rb', line 20 def setup(*remotes) Pushapp::Commands.run(:setup, remotes: remotes, options: ) end |
#ssh(remote = nil) ⇒ Object
67 68 69 |
# File 'lib/pushapp/cli.rb', line 67 def ssh(remote=nil) Pushapp::Commands.run(:ssh, remote: remote, options: ) end |
#tasks(*remotes) ⇒ Object
50 51 52 |
# File 'lib/pushapp/cli.rb', line 50 def tasks(*remotes) Pushapp::Commands.run(:tasks, remotes: remotes, options: ) end |
#trigger(event, *remotes) ⇒ Object
59 60 61 |
# File 'lib/pushapp/cli.rb', line 59 def trigger(event, *remotes) Pushapp::Commands.run(:trigger, event: event, remotes: remotes, local: ['local'], options: ) end |