Class: Capricorn::Actors::PassengerActor
- Inherits:
-
Capricorn::Actor
- Object
- Capricorn::Actor
- Capricorn::Actors::PassengerActor
- Defined in:
- lib/capricorn/actors/passenger_actor.rb
Instance Attribute Summary
Attributes inherited from Capricorn::Actor
Instance Method Summary collapse
-
#restart ⇒ Object
restart the current satellite.
Methods inherited from Capricorn::Actor
Methods included from Capricorn::Actor::Actions
included, #run_callbacks!, #run_callbacks_in_fase!
Constructor Details
This class inherits a constructor from Capricorn::Actor
Instance Method Details
#restart ⇒ Object
restart the current satellite.
10 11 12 13 14 15 |
# File 'lib/capricorn/actors/passenger_actor.rb', line 10 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 |