Sha256: 30a1f6dba1d9c7ab81defff0851a6828f29e9b158b5b9e398744b9625c40d50d
Contents?: true
Size: 730 Bytes
Versions: 2
Compression:
Stored size: 730 Bytes
Contents
module Capricorn module Actors # :nodoc: class PassengerActor < Capricorn::Actor after_install_satellite :restart after_link_satellite :restart # restart the current satellite. def restart system.as_user(system.web_user, system.web_group) do tmp_restart = system.passenger_restart_txt FileUtils.touch tmp_restart, :verbose => true end end module Config # set the passneger restart file. def passenger_restart_txt(&block) satellite_option(:passenger_restart_txt, block) { |v,s| v || File.join(satellite_root, 'tmp', 'restart.txt') } end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
simonmenke-capricorn-0.2.03 | lib/capricorn/actors/passenger_actor.rb |
capricorn-0.2.03 | lib/capricorn/actors/passenger_actor.rb |