Sha256: a119213d43b09aca7d0318f3fe33c43d8d03db4621e877b3dfe2642730cc9a71

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

Contents

module Elb
  class CLI < Thor
    class Help
      class << self
        def restart
<<-EOL
The command is meant to be ran on the instance itself and will basically:

1. deregister the instance from the autoscaling group it's associated with

2. restart the app

3. warm up the app by hitting it with a local curl request

4. register the instance back to the elb

Examples:

$ elb restart --wait 30 # wait 30 seconds after deregistering

$ elb restart --warm-command "curl -s -v -o /dev/null localhost/custom-warm-url 2>&1 | grep '< HTTP'"

$ elb restart --restart-command "/etc/init.d/nginx restart"
EOL
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
elb-0.0.7 lib/elb/cli/help.rb
elb-0.0.6 lib/elb/cli/help.rb
elb-0.0.5 lib/elb/cli/help.rb
elb-0.0.4 lib/elb/cli/help.rb