Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (20 sloc) 0.872 kb
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
#require 'thinking_sphinx/tasks'
desc "Copy application sample config for dev/test purposes"
task :copy_sample_config do
if Rails.env.development? or Rails.env.test?
settings_file = File.join(Rails.root, *%w(config settings.yml))
settings_file_example = File.join(Rails.root, *%w(config settings.example.yml))
unless File.exist?(settings_file)
puts "Setting up config/setting.yml from config/settings.example.yml..."
FileUtils.cp(settings_file_example, settings_file)
end
end
end
task :environment => :copy_sample_config
Jump to Line
Something went wrong with that request. Please try again.