lib/sprout/executable.rb in sprout-1.0.31.pre vs lib/sprout/executable.rb in sprout-1.0.32.pre
- old
+ new
@@ -9,10 +9,11 @@
require 'sprout/executable/path'
require 'sprout/executable/paths'
require 'sprout/executable/url'
require 'sprout/executable/urls'
require 'sprout/executable/parameter_factory'
+require 'rake/clean'
module Sprout
##
# The Sprout::Executable module exposes a Domain Specific Language
@@ -381,9 +382,10 @@
protected
def update_rake_task_name_from_args *args
self.rake_task_name = parse_rake_task_arg args.last
+ CLEAN.add(self.rake_task_name)
end
def parse_rake_task_arg arg
return arg if arg.is_a?(Symbol) || arg.is_a?(String)
arg.each_pair do |key, value|