lib/dogids/ssh/development.rb in dogids-cli-0.0.18 vs lib/dogids/ssh/development.rb in dogids-cli-0.0.19

- old
+ new

@@ -3,11 +3,12 @@ module Dogids class Cli < Thor no_commands do def ssh_development(vm_name = nil) 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") + ssh_address = get_config_url(vm_name) + puts "Running: ssh -R 52698:localhost:52698 dogids@#{ssh_address}" + exec("ssh -R 52698:localhost:52698 dogids@#{ssh_address}") else ssh end end end