Permalink
Browse files

minor changes to cap

  • Loading branch information...
1 parent 8823be5 commit 3b8582013d9e366f76ae627f0d232001d20c256b Derek Szydlowski committed Jul 21, 2011
Showing with 13 additions and 3 deletions.
  1. +8 −0 lib/cap.rb
  2. +5 −3 lib/config.rb
View
@@ -49,7 +49,15 @@ def stat_unicorn(ecc, instances, args)
args[1].nil? ? community = "amazon-perf" : community = args[1]
cap "control:stat_unicorn", community
end
+def stop_search(ecc, instances, args)
+ args[1].nil? ? community = "amazon-perf" : community = args[1]
+ cap "control:stop_search", community
+end
+def start_search(ecc, instances, args)
+ args[1].nil? ? community = "amazon-perf" : community = args[1]
+ cap "control:start_search", community
+end
def start_memcached(ecc, instances, args)
args[1].nil? ? community = "amazon-perf" : community = args[1]
View
@@ -187,12 +187,13 @@ def update_database_configs(ecc, instances, args)
end
end
upload_database_yml(ecc, instances)
- cap "control:stop_unicorn", "amazon-perf"
- cap "control:start_unicorn", "amazon-perf"
+ #cap "control:stop_unicorn", "amazon-perf"
+ #cap "control:start_unicorn", "amazon-perf"
end
def update_app_configs(ecc, instances, args)
#prep apps
+ update_database_configs(ecc, instances, args)
apps = ecc.get_app_layer_instances(instances, "running")
#prep cache
@@ -308,6 +309,7 @@ def update_app_configs(ecc, instances, args)
upload_app_conf(ecc, instances)
cap "control:stop_unicorn", "amazon-perf"
cap "control:start_unicorn", "amazon-perf"
-
+ cap "control:stop_search", "amazon-perf"
+ cap "control:start_search", "amazon-perf"
end

0 comments on commit 3b85820

Please sign in to comment.