From c1f1539cb6552825d6e7f40b8f925fca5ad343f9 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 20 Nov 2012 15:33:50 -0500 Subject: [PATCH] also be able to refer to which host to connect to --- lib/cap-pack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cap-pack.rb b/lib/cap-pack.rb index a4a9ba5..506642a 100644 --- a/lib/cap-pack.rb +++ b/lib/cap-pack.rb @@ -10,7 +10,7 @@ Capistrano::Configuration.instance.load do end def current_host - find_servers_for_task(current_task).first + ENV['HOST'] || find_servers_for_task(current_task).first end Dir[File.expand_path('../cap-pack/recipes/**/*.rb', __FILE__)].each { |f| load f }