lib/asset_hat/tasks.rb in asset_hat-0.3.1 vs lib/asset_hat/tasks.rb in asset_hat-0.4.0
- old
+ new
@@ -24,11 +24,13 @@
task type.to_sym => "asset_hat:#{type}:minify"
end
end
desc 'Prepare configuration file'
- task :config, :needs => :environment do
+ task :config do
+ require 'asset_hat'
+
template_filepath = File.join(File.dirname(__FILE__), '..', '..',
AssetHat::RELATIVE_CONFIG_FILEPATH)
target_filepath = AssetHat::CONFIG_FILEPATH
if File.exists?(target_filepath)
@@ -38,9 +40,10 @@
puts 'Aborted.' ; exit
end
end
FileUtils.cp(template_filepath, target_filepath)
- puts "Wrote to #{target_filepath}"
+ puts "\nWrote to #{target_filepath}. Next, open this file in your editor"
+ puts 'and set up your CSS/JS bundles.'
end
end # namespace :asset_hat