Sha256: 092c2f094a0febb4c4a4d0a37e14c7ff757328087698fe3cb66b5b9a07e93deb

Contents?: true

Size: 484 Bytes

Versions: 4

Compression:

Stored size: 484 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 = File.join(system.satellite_root, 'tmp', 'restart.txt')
          FileUtils.touch tmp_restart, :verbose => true
        end
      end
      
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
simonmenke-capricorn-0.2.00 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.02 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.01 lib/capricorn/actors/passenger_actor.rb
capricorn-0.2.00 lib/capricorn/actors/passenger_actor.rb