Sha256: 83f876842fbb7948641203aeae872c465e48f720b40e0fcbe316da34f6d85d40

Contents?: true

Size: 1.14 KB

Versions: 19

Compression:

Stored size: 1.14 KB

Contents

require "json"
require "git"
require "fileutils"
require "pathname"
require "ssh-base-cmd-class"

class RemoteRun
    def doWire(publicIp, privateKey, solution, action, args, ref="")
      remote = RemoteCall.new
      remote.exec publicIp, privateKey, "canzea --lifecycle=wire --raw --solution=#{solution} --action=#{action} --args='#{args}'", ref
    end

    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

    def do(publicIp, privateKey, role, solution, ref="")
      remote = RemoteCall.new
      remote.exec publicIp, privateKey, "canzea --lifecycle=install --role=#{role} --solution=#{solution}", ref
    end

    def doCommand(publicIp, privateKey, command, ref="")
      remote = RemoteCall.new
      remote.exec publicIp, privateKey, command, ref
    end

    def test(publicIp, privateKey, role, solution, ref="")
      remote = RemoteCall.new
      remote.exec publicIp, privateKey, "canzea --lifecycle=install --role=#{role} --solution=#{solution} --test", ref
    end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
canzea-0.1.149 lib/commands/remote-run.rb
canzea-0.1.148 lib/commands/remote-run.rb
canzea-0.1.147 lib/commands/remote-run.rb
canzea-0.1.144 lib/commands/remote-run.rb
canzea-0.1.143 lib/commands/remote-run.rb
canzea-0.1.142 lib/commands/remote-run.rb
canzea-0.1.141 lib/commands/remote-run.rb
canzea-0.1.140 lib/commands/remote-run.rb
canzea-0.1.139 lib/commands/remote-run.rb
canzea-0.1.138 lib/commands/remote-run.rb
canzea-0.1.137 lib/commands/remote-run.rb
canzea-0.1.136 lib/commands/remote-run.rb
canzea-0.1.135 lib/commands/remote-run.rb
canzea-0.1.134 lib/commands/remote-run.rb
canzea-0.1.133 lib/commands/remote-run.rb
canzea-0.1.132 lib/commands/remote-run.rb
canzea-0.1.131 lib/commands/remote-run.rb
canzea-0.1.130 lib/commands/remote-run.rb
canzea-0.1.129 lib/commands/remote-run.rb