Class: Pushapp::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/pushapp/cli.rb

Instance Method Summary collapse

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: options)
end

#initObject



12
13
14
# File 'lib/pushapp/cli.rb', line 12

def init
  Pushapp::Commands.run(:init)
end

#remotesObject



36
37
38
# File 'lib/pushapp/cli.rb', line 36

def remotes
  Pushapp::Commands.run(:list_remotes, options: 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: 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: 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: options)
end

#trigger(event, *remotes) ⇒ Object



51
52
53
# File 'lib/pushapp/cli.rb', line 51

def trigger(event, *remotes)
  Pushapp::Commands.run(:trigger, event: event, remotes: remotes, local: options['local'], options: options)
end

#update_refsObject



28
29
30
# File 'lib/pushapp/cli.rb', line 28

def update_refs
  Pushapp::Commands.run(:update_refs, options: options)
end