From a8f3192e061907e5ab38990d482955357c263979 Mon Sep 17 00:00:00 2001 From: Kevin Menard Date: Fri, 1 Oct 2010 20:59:35 -0400 Subject: [PATCH] Better support for Windows in some cases. --- lib/rubber/recipes/rubber/instances.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rubber/recipes/rubber/instances.rb b/lib/rubber/recipes/rubber/instances.rb index 91871d6fa..4a3493a34 100644 --- a/lib/rubber/recipes/rubber/instances.rb +++ b/lib/rubber/recipes/rubber/instances.rb @@ -42,7 +42,7 @@ Refresh the host data for a EC2 instance with the given ALIAS. This is useful to run when rubber:create fails after instance creation DESC - task :refresh do + required_task :refresh do instance_alias = get_env('ALIAS', "Instance alias (e.g. web01)", true) ENV.delete('ROLES') # so we don't get an error if people leave ROLES in env from :create CLI refresh_instance(instance_alias) @@ -51,7 +51,7 @@ desc <<-DESC Destroy the EC2 instance for the given ALIAS DESC - task :destroy do + required_task :destroy do instance_alias = get_env('ALIAS', "Instance alias (e.g. web01)", true) ENV.delete('ROLES') # so we don't get an error if people leave ROLES in env from :create CLI destroy_instance(instance_alias) @@ -60,7 +60,7 @@ desc <<-DESC Destroy ALL the EC2 instances for the current env DESC - task :destroy_all do + required_task :destroy_all do rubber_instances.each do |ic| destroy_instance(ic.name) end