dumb.rb

Sign up for a GitHub account Sign in All Gists colby / dumb.rb secret Created March 31, 2015 Code Revisions 1 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav View dumb.rb dumb.rb Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 execute ' stop resque workers ' do command " monit -g workers stop " action :run # NOTE: only stop workers if the deploy revision is different from current not_if ' [[ "$(ls -l /var/www/*/current | grep -oE "releases/(.*)" | cut -d"/" -f2)" ] == "#{deploy_revision}" ]] ' # NOTE: start works back up after successful chef run notifies :run , ' execute[start resque workers] ' , :delayed end Sign up for free to join this ...

Linked on 2015-03-31 01:52:45 | Similar Links