lib/assets_booster/tasks/tasks.rake in assets_booster-0.0.1 vs lib/assets_booster/tasks/tasks.rake in assets_booster-0.0.2
- old
+ new
@@ -1,29 +1,27 @@
-require "assets_booster/configuration"
require "assets_booster/packager"
-
namespace :assets_booster do
desc 'Merge assets'
task :merge do
- AssetsBooster::Packager.init
- AssetsBooster::Packager.merge_all
+ packager = AssetsBooster::Packager.new
+ packager.merge_all
end
desc 'Merge and compile assets'
task :compile do
- AssetsBooster::Packager.init
- AssetsBooster::Packager.compile_all
+ packager = AssetsBooster::Packager.new
+ packager.compile_all
end
desc 'Delete all asset builds'
task :delete do
- AssetsBooster::Packager.init
- AssetsBooster::Packager.delete_all
+ packager = AssetsBooster::Packager.new
+ packager.delete_all
end
- desc 'Generate assets_booster.yml from existing assets'
+ desc 'Generate a configuration file for existing assets'
task :setup do
- AssetsBooster::Packager.init
- AssetsBooster::Configuration.create
+ packager = AssetsBooster::Packager.new
+ packager.create_configuration
end
end