forked from auser/poolparty
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cloud reboot to cycle instances
- Loading branch information
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env ruby | ||
$:.unshift(File.dirname(__FILE__) + "/../lib") | ||
require "poolparty" | ||
|
||
require 'git-style-binary/command' | ||
|
||
GitStyleBinary.command do | ||
banner <<-EOS | ||
Usage: #{$0} #{all_options_string} | ||
Cycle through nodes in the cloud and wait for the autoscaler to reboot | ||
EOS | ||
|
||
short_desc "Cycle the instances" | ||
|
||
run do |command| | ||
|
||
@loaded_clouds.each do |cld| | ||
cld.reboot! | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters