We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think a nice feature would be to add a new DSL method to quickly re-define a task.
Something like:
# Define task task :fizz do |t| puts "Old #{t.name}" end # Redefine task task! :fizz do |t| puts "New #{t.name}" end # rake fizz # => "New fizz"
Where task! is shorthand for
task!
Rake::Task[:fizz].clear if Rake::Task.task_defined? :fizz Rake::Task.define_task :fizz
I'm happy to open a PR for this if that sounds like something useful to others.
The text was updated successfully, but these errors were encountered:
There's currently a simple way:
task(:fizz).clear.enhance do |t| puts "New #{t.name}" end
Sorry, something went wrong.
No branches or pull requests
I think a nice feature would be to add a new DSL method to quickly re-define a task.
Something like:
Where
task!
is shorthand forI'm happy to open a PR for this if that sounds like something useful to others.
The text was updated successfully, but these errors were encountered: