Sha256: 4c5ef8483853f54de10d488dea573bf32fb3f992ded7c3a2f474abae300a957f

Contents?: true

Size: 731 Bytes

Versions: 25

Compression:

Stored size: 731 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) { |s, v| v || File.join(satellite_root, 'tmp', 'restart.txt') }
        end
        
      end
      
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
simonmenke-capricorn-0.2.07 lib/capricorn/actors/passenger_actor.rb
simonmenke-capricorn-0.2.25 lib/capricorn/actors/passenger_actor.rb
simonmenke-capricorn-0.2.26 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.25 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.24 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.23 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.22 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.21 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.20 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.19 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.18 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.17 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.16 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.15 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.14 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.13 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.12 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.11 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.10 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.09 lib/capricorn/actors/passenger_actor.rb