Sha256: b3501ee3751341879d75f3bdf44d65ad916e4dcb5d26bd2d7de28b373bddbdba
Contents?: true
Size: 775 Bytes
Versions: 9
Compression:
Stored size: 775 Bytes
Contents
require "thor" module Dogids class Cli < Thor no_commands do def ssh_production(vm_name = nil) case vm_name when "db" puts "Running: `ssh -R 52698:localhost:52698 dogids@db1.dogids.codelation.net`" exec("ssh -R 52698:localhost:52698 dogids@db1.dogids.codelation.net") when "web" puts "Running: `ssh -R 52698:localhost:52698 dogids@web1.dogids.codelation.net`" exec("ssh -R 52698:localhost:52698 dogids@web1.dogids.codelation.net") when "worker" puts "Running: `ssh -R 52698:localhost:52698 dogids@worker1.dogids.codelation.net`" exec("ssh -R 52698:localhost:52698 dogids@worker1.dogids.codelation.net") else ssh end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems