Sha256: b7dd0915cbace912d2f325189990984dd2a784ad65e741915dd45f48ea68ddbe

Contents?: true

Size: 367 Bytes

Versions: 12

Compression:

Stored size: 367 Bytes

Contents

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

class RemoteRun
    def do(serverBase, serverNumber, privateKey, role, solution)
      publicIp = File.read("vps-#{serverBase}-#{serverNumber}.json")
      remote = RemoteCall.new
      remote.run publicIp, privateKey, "canzea --run --role=#{role} --solution=#{solution}"
    end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
canzea-0.1.11 lib/commands/remote-run.rb
canzea-0.1.10 lib/commands/remote-run.rb
canzea-0.1.9 lib/commands/remote-run.rb
canzea-0.1.8 lib/commands/remote-run.rb
canzea-0.1.7 lib/commands/remote-run.rb
canzea-0.1.6 lib/commands/remote-run.rb
canzea-0.1.5 lib/commands/remote-run.rb
canzea-0.1.4 lib/commands/remote-run.rb
canzea-0.1.3 lib/commands/remote-run.rb
canzea-0.1.2 lib/commands/remote-run.rb
canzea-0.1.1 lib/commands/remote-run.rb
canzea-0.1.0 lib/commands/remote-run.rb