Class: Blazing::Recipe::PassengerRestart

Inherits:
Blazing::Recipe
  • Object
show all
Defined in:
lib/blazing-passenger/recipes/passenger_restart.rb

Instance Method Summary collapse

Instance Method Details

#run(target_options = {}) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/blazing-passenger/recipes/passenger_restart.rb', line 5

def run(target_options = {})
  super target_options

  info 'Restarting passenger'
  Dir.mkdir('tmp') unless File.exists? 'tmp'
  system 'touch tmp/restart.txt'
end