lib/tasks/assets.rake in dump-1.2.0 vs lib/tasks/assets.rake in dump-1.2.1

- old
+ new

@@ -1,12 +1,14 @@ +# frozen_string_literal: true + require 'dump' task :assets do ENV['ASSETS'] ||= Dump::Assets.assets end namespace :assets do - desc 'Delete assets' << Dump::Env.explain_variables_for_command(:assets) + desc 'Delete assets' + Dump::Env.explain_variables_for_command(:assets) task :delete => :assets do ENV['ASSETS'].split(':').each do |asset| Dump::Assets.glob_asset_children(asset, '*').each do |child| FileUtils.remove_entry(child) end