Class: Pushapp::CLI
- Inherits:
-
Thor
- Object
- Thor
- Pushapp::CLI
- Defined in:
- lib/pushapp/cli.rb
Instance Method Summary collapse
- #exec(remote, *args) ⇒ Object
- #init ⇒ Object
- #remotes ⇒ Object
- #setup(*remotes) ⇒ Object
- #ssh(remote = nil) ⇒ Object
- #tasks(*remotes) ⇒ Object
- #trigger(event, *remotes) ⇒ Object
- #update_refs ⇒ Object
Instance Method Details
#exec(remote, *args) ⇒ Object
67 68 69 |
# File 'lib/pushapp/cli.rb', line 67 def exec(remote, *args) Pushapp::Commands.run(:exec, remote: remote, args: args, options: ) end |
#init ⇒ Object
12 13 14 |
# File 'lib/pushapp/cli.rb', line 12 def init Pushapp::Commands.run(:init) end |
#remotes ⇒ Object
36 37 38 |
# File 'lib/pushapp/cli.rb', line 36 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
59 60 61 |
# File 'lib/pushapp/cli.rb', line 59 def ssh(remote=nil) Pushapp::Commands.run(:ssh, remote: remote, options: ) end |
#tasks(*remotes) ⇒ Object
42 43 44 |
# File 'lib/pushapp/cli.rb', line 42 def tasks(*remotes) Pushapp::Commands.run(:tasks, remotes: remotes, options: ) end |