lib/dogids/ssh/development.rb in dogids-cli-0.0.1 vs lib/dogids/ssh/development.rb in dogids-cli-0.0.2

- old
+ new

@@ -2,19 +2,12 @@ module Dogids class Cli < Thor no_commands do def ssh_development(vm_name = nil) - case vm_name - when "db" - puts "Running: ssh -R 52698:localhost:52698 dogids@55.55.55.10" - exec("ssh -R 52698:localhost:52698 dogids@55.55.55.10") - when "web" + if vm_name == "dev" puts "Running: ssh -R 52698:localhost:52698 dogids@55.55.55.20" exec("ssh -R 52698:localhost:52698 dogids@55.55.55.20") - when "worker" - puts "Running: ssh -R 52698:localhost:52698 dogids@55.55.55.30" - exec("ssh -R 52698:localhost:52698 dogids@55.55.55.30") else ssh end end end