Changeset 265

Show
Ignore:
Timestamp:
12/11/07 03:20:49 (9 months ago)
Author:
gethema..@gmail.com
Message:

check in test helper

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README

    r263 r265  
    3838 
    3939   | :backgroundrb: 
    40    |   :ip: localhost 
     40   |   :ip: 0.0.0.0 
    4141   |   :port: 11006 
    4242   | 
     
    5959 
    6060   | :backgroundrb: 
    61    |   :ip: localhost 
     61   |   :ip: 0.0.0.0 
    6262   |   :port: 11006 
    6363   | :schedules: 
     
    309309   | :backgroundrb: 
    310310   |   :port: 11006 
    311    |   :ip: localhost 
     311   |   :ip: 0.0.0.0 
    312312   |   :log: foreground 
    313313 
  • trunk/tasks/backgroundrb_tasks.rake

    r217 r265  
    2424    workers_dest = "#{RAILS_ROOT}/lib/workers" 
    2525    unless File.exists?(workers_dest) 
    26         puts "Creating #{workers_dest}" 
    27         FileUtils.mkdir(workers_dest) 
     26      puts "Creating #{workers_dest}" 
     27      FileUtils.mkdir(workers_dest) 
    2828    end 
     29 
     30    test_helper_dest = "#{RAILS_ROOT}/test/bdrb_test_helper.rb" 
     31    test_helper_src = File.dirname(__FILE__) + "/../script/bdrb_test_helper.rb" 
     32    unless File.exists?(test_helper_dest) 
     33      puts "Copying Worker Test helper file #{test_helper_dest}" 
     34      FileUtils.cp_r(test_helper_src,test_helper_dest) 
     35    end 
     36 
    2937  end 
    3038 
     
    3846    end 
    3947 
     48    test_helper_src = "#{RAILS_ROOT}/test/bdrb_test_helper.rb" 
     49    if File.exists?(test_helper_src) 
     50      puts "Removing backgroundrb test helper.." 
     51      FileUtils.rm(test_helper_src,:force => true) 
     52    end 
     53 
    4054    workers_dest = "#{RAILS_ROOT}/lib/workers" 
    4155    if File.exists?(workers_dest) && Dir.entries("#{workers_dest}").size == 2