sstephenson/sprockets — Issue #276: Rake task clean should support arguments
Author: heygrady
Created: 2012-01-08 05:43:34+00:00
State: open

The rake task doesn't allow to specify the number of old assets to keep.

It would probably look something like this:

```ruby
desc name == :assets ? "Clean old assets" : "Clean old #{name} assets"
task "clean_#{name}", :keep do |t, args|
with_logger do
manifest.clean(args[:keep])
end
end

task :clean => ["clean_#{name}"]
```

https://github.com/sstephenson/sprockets/blob/master/lib/rake/sprocketstask.rb#L106