class EySecrets::Restart
Public Instance Methods
build()
click to toggle source
# File lib/ey_secrets/actions/restart.rb, line 5 def build restart_monit restart_passenger end
Private Instance Methods
restart_monit()
click to toggle source
# File lib/ey_secrets/actions/restart.rb, line 12 def restart_monit ssh("sudo monit restart -g #{instance.app_name}_resque") end
restart_passenger()
click to toggle source
# File lib/ey_secrets/actions/restart.rb, line 16 def restart_passenger ssh("if [ -d #{File.join(instance.current_app_dir, 'tmp')} ]; then touch #{File.join(instance.current_app_dir, 'tmp', 'restart.txt')}; fi") end