require_relative 'config/boot' require_relative 'my_app' namespace :assets do desc "Precompile assets" task :precompile do manifest = ::Sprockets::Manifest.new(MyApp.assets.index, "#{MyApp.public_folder}/assets") manifest.compile(MyApp.assets_manifest) end desc "Clean assets" task :clean do FileUtils.rm_rf("#{MyApp.public_folder}/assets") end end