lib/simple_deploy/stack/ssh.rb in simple_deploy-0.6.4 vs lib/simple_deploy/stack/ssh.rb in simple_deploy-0.6.5

- old
+ new

@@ -16,19 +16,17 @@ @logger = @config.logger @region = @config.region @environment end def execute(args) + return false if @instances.nil? || @instances.empty? create_execute_task args @task.execute end private def create_execute_task(args) - if @instances.nil? || @instances.empty? - raise "There are no running instances to execute this command." - end @task = Capistrano::Configuration.new :output => @logger @task.logger.level = 3 set_ssh_gateway