Sha256: d33d6387934773dee5abd89b1aab6f59baaf1ddacb93d487a982d94d8e74304b

Contents?: true

Size: 909 Bytes

Versions: 3

Compression:

Stored size: 909 Bytes

Contents

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

class RemoteRun
    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

3 entries across 3 versions & 1 rubygems

Version Path
canzea-0.1.126 lib/commands/remote-run.rb
canzea-0.1.125 lib/commands/remote-run.rb
canzea-0.1.124 lib/commands/remote-run.rb