Skip to content

Commit

Permalink
Fixing windows test in rake file. From 'if windows' to 'unless windows'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Moss committed Jun 22, 2009
1 parent 6ebebf4 commit dcded25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_solr/tasks/solr.rake
Expand Up @@ -27,7 +27,7 @@ namespace :solr do
end end
end end
sleep(5) sleep(5)
File.open("#{SOLR_PIDS_PATH}/#{ENV['RAILS_ENV']}_pid", "w"){ |f| f << pid} if windows File.open("#{SOLR_PIDS_PATH}/#{ENV['RAILS_ENV']}_pid", "w"){ |f| f << pid} unless windows
puts "#{ENV['RAILS_ENV']} Solr started successfully on #{SOLR_PORT}, pid: #{pid}." puts "#{ENV['RAILS_ENV']} Solr started successfully on #{SOLR_PORT}, pid: #{pid}."
end end
end end
Expand Down

0 comments on commit dcded25

Please sign in to comment.