Sha256: e175523fea7e1761477e04e6b854a89cdb141059e76a1cc3880dd465291c4061

Contents?: true

Size: 1.61 KB

Versions: 4

Compression:

Stored size: 1.61 KB

Contents

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

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

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

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

    def doConfigure(publicIp, privateKey, role, solution, ref="")
      remote = RemoteCall.new
      remote.exec publicIp, privateKey, "canzea --lifecycle=configure --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

4 entries across 4 versions & 1 rubygems

Version Path
canzea-0.1.180 lib/commands/remote-run.rb
canzea-0.1.179 lib/commands/remote-run.rb
canzea-0.1.178 lib/commands/remote-run.rb
canzea-0.1.177 lib/commands/remote-run.rb