lib/generators/lobot/templates/deploy-ci.rb in lobot-0.9.7 vs lib/generators/lobot/templates/deploy-ci.rb in lobot-0.10.0
- old
+ new
@@ -1,5 +1,7 @@
require 'yaml'
aws_conf_location = File.expand_path('../../ci.yml', __FILE__)
-ci_server = YAML.load_file(aws_conf_location)["server"]['elastic_ip']
+server_config = YAML.load_file(aws_conf_location)["server"]
+ci_server = server_config['elastic_ip']
+ssh_port = server_config['ssh_port'] || 22
-role :ci, ci_server
\ No newline at end of file
+role :ci, "#{ci_server}:#{ssh_port}"