Class: Capricorn::Actors::PassengerActor

Inherits:
Capricorn::Actor show all
Defined in:
lib/capricorn/actors/passenger_actor.rb

Defined Under Namespace

Modules: Config

Instance Attribute Summary

Attributes inherited from Capricorn::Actor

#satellite, #system

Instance Method Summary collapse

Methods inherited from Capricorn::Actor

#initialize

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

#restartObject

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 = system.passenger_restart_txt
    FileUtils.touch tmp_restart, :verbose => true
  end
end