]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/plugins/irs_process_scripts/install.rb
Add irs_process_scripts plugin to replace process control scripts used
[rails.git] / vendor / plugins / irs_process_scripts / install.rb
diff --git a/vendor/plugins/irs_process_scripts/install.rb b/vendor/plugins/irs_process_scripts/install.rb
new file mode 100644 (file)
index 0000000..f922ef8
--- /dev/null
@@ -0,0 +1,9 @@
+# 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')