Permalink
Browse files

fix install script

  • Loading branch information...
1 parent d7a0366 commit 5d6db7816792afef73c3a38551b829e0e8ee1213 U-MICROSOF-2DF20B\new committed Aug 19, 2009
Showing with 5 additions and 3 deletions.
  1. +5 −3 install.rb
View
8 install.rb
@@ -1,3 +1,5 @@
-puts IO.read(File.join(File.dirname(__FILE__), 'README'))
-#require 'ftools'
-#File.copy('config/tenpay.yml', File.expand_path(File.dirname(__FILE__) + "/../../../config/tenpay.yml"))
+dest_file = File.join(RAILS_ROOT, "config/tenpay.yml")
+src_file = File.join(File.dirname(__FILE__) , 'config/tenpay.yml')
+FileUtils.cp_r(src_file, dest_file)
+
+puts IO.read(File.join(File.dirname(__FILE__), 'README'))

0 comments on commit 5d6db78

Please sign in to comment.