Class: RemoteRun
- Inherits:
-
Object
- Object
- RemoteRun
- Defined in:
- lib/commands/remote-run.rb
Instance Method Summary collapse
- #do(publicIp, privateKey, role, solution, ref = "") ⇒ Object
- #doCommand(publicIp, privateKey, command, ref = "") ⇒ Object
- #doConfigure(publicIp, privateKey, role, solution, ref = "") ⇒ Object
- #doInstall(publicIp, privateKey, role, solution, args, ref = "") ⇒ Object
- #doTask(publicIp, privateKey, role, solution, task, ref = "") ⇒ Object
- #doWire(publicIp, privateKey, solution, action, env, args, ref = "") ⇒ Object
- #test(publicIp, privateKey, role, solution, ref = "") ⇒ Object
Instance Method Details
#do(publicIp, privateKey, role, solution, ref = "") ⇒ Object
23 24 25 26 |
# File 'lib/commands/remote-run.rb', line 23 def do(publicIp, privateKey, role, solution, ref="") remote = RemoteCall.new remote.exec publicIp, privateKey, "canzea --lifecycle=install --role=#{role} --solution=#{solution}", ref end |
#doCommand(publicIp, privateKey, command, ref = "") ⇒ Object
33 34 35 36 |
# File 'lib/commands/remote-run.rb', line 33 def doCommand(publicIp, privateKey, command, ref="") remote = RemoteCall.new remote.exec publicIp, privateKey, command, ref end |
#doConfigure(publicIp, privateKey, role, solution, ref = "") ⇒ Object
28 29 30 31 |
# File 'lib/commands/remote-run.rb', line 28 def doConfigure(publicIp, privateKey, role, solution, ref="") remote = RemoteCall.new remote.exec publicIp, privateKey, "canzea --lifecycle=configure --role=#{role} --solution=#{solution}", ref end |
#doInstall(publicIp, privateKey, role, solution, args, ref = "") ⇒ Object
18 19 20 21 |
# File 'lib/commands/remote-run.rb', line 18 def doInstall(publicIp, privateKey, role, solution, args, ref="") remote = RemoteCall.new remote.exec publicIp, privateKey, "canzea --lifecycle=install --role=#{role} --solution=#{solution} --args='#{args}'", ref end |
#doTask(publicIp, privateKey, role, solution, task, ref = "") ⇒ Object
13 14 15 16 |
# File 'lib/commands/remote-run.rb', line 13 def doTask(publicIp, privateKey, role, solution, task, ref="") remote = RemoteCall.new remote.exec publicIp, privateKey, "canzea --lifecycle=install --role=#{role} --task=#{task} --solution=#{solution}", ref end |
#doWire(publicIp, privateKey, solution, action, env, args, ref = "") ⇒ Object
8 9 10 11 |
# File 'lib/commands/remote-run.rb', line 8 def doWire(publicIp, privateKey, solution, action, env, args, ref="") remote = RemoteCall.new remote.exec publicIp, privateKey, "canzea --lifecycle=wire --raw --solution=#{solution} --action=#{action} --env='#{env}' --args='#{args}'", ref end |
#test(publicIp, privateKey, role, solution, ref = "") ⇒ Object
38 39 40 41 |
# File 'lib/commands/remote-run.rb', line 38 def test(publicIp, privateKey, role, solution, ref="") remote = RemoteCall.new remote.exec publicIp, privateKey, "canzea --lifecycle=install --role=#{role} --solution=#{solution} --test", ref end |