public
Description: The extracted inspector, reaper, and spawner scripts from script/process/*
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/irs_process_scripts.git
dhh (author)
Tue Jan 27 13:47:28 -0800 2009
irs_process_scripts / install.rb
100644 10 lines (8 sloc) 0.335 kb
1
2
3
4
5
6
7
8
9
10
# Install hook code here
unless defined?(RAILS_ROOT)
  $stderr.puts "$0 must be run from RAILS_ROOT with -rconfig/boot"
  exit
end
 
require 'fileutils'
FileUtils.rm_rf(RAILS_ROOT + '/script/process') # remove the old stubs first
FileUtils.cp_r(RAILS_ROOT + '/vendor/plugins/irs_process_scripts/script', RAILS_ROOT + '/script/process')