lib/asset_hat/tasks.rb in asset_hat-0.1.3 vs lib/asset_hat/tasks.rb in asset_hat-0.1.4
- old
+ new
@@ -28,12 +28,12 @@
Rake::Task['asset_hat:js:minify'].invoke # Generate all JS bundles
end
desc 'Prepare configuration file'
task :config do
- template_filepath =
- File.join(File.dirname(__FILE__), '..', '..', AssetHat::CONFIG_FILEPATH)
- target_filepath = File.join(RAILS_ROOT, AssetHat::CONFIG_FILEPATH)
+ template_filepath = File.join(File.dirname(__FILE__), '..', '..',
+ AssetHat::RELATIVE_CONFIG_FILEPATH)
+ target_filepath = AssetHat::CONFIG_FILEPATH
if File.exists?(target_filepath)
print "Replace #{target_filepath}? (y/n) "
response = STDIN.gets.chomp
unless response.downcase == 'y'