Class: Elb::CLI::Help

Inherits:
Object
  • Object
show all
Defined in:
lib/elb/cli/help.rb

Class Method Summary collapse

Class Method Details

.restartObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/elb/cli/help.rb', line 5

def restart
"The command is meant to be ran on the instance itself and will basically:\n\n1. deregister the instance from the autoscaling group it's associated with\n\n2. restart the app\n\n3. warm up the app by hitting it with a local curl request\n\n4. register the instance back to the elb\n\nExamples:\n\n$ elb restart --wait 30 # wait 30 seconds after deregistering\n\n$ elb restart --warm-command \"curl -s -v -o /dev/null localhost/custom-warm-url 2>&1 | grep '< HTTP'\"\n\n$ elb restart --restart-command \"/etc/init.d/nginx restart\"\n"
end