Method: God::Watch#initialize
- Defined in:
- lib/god/watch.rb
#initialize ⇒ Watch
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/god/watch.rb', line 19 def initialize super @process = God::Process.new # valid states self.valid_states = VALID_STATES self.initial_state = INITIAL_STATE # no grace period by default self.grace = self.start_grace = self.stop_grace = self.restart_grace = 0 end |