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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Task.clear does not remove the handling of parameters. This can easily be seen by the following example:
desc 'Original Test Task' task :test, [:param] do; end Rake::Task[:test].clear desc 'Replaced Test Task' task :test do; end
desc 'Original Test Task'
task :test, [:param] do; end
Rake::Task[:test].clear
desc 'Replaced Test Task'
task :test do; end
rake -T yields
rake test[param] # Replaced Test Task
Adding the following after the call to clear corrects it, so clear just needs to remove the params
Rake::Task[:test].instance_variable_set(:@arg_names, nil)
The text was updated successfully, but these errors were encountered:
Merge pull request #157 from jessebs/master
c3fbc13
#156 Remove arguments on clear
Fixed at #157
Sorry, something went wrong.
No branches or pull requests
Task.clear does not remove the handling of parameters. This can easily be seen by the following example:
desc 'Original Test Task'
task :test, [:param] do; end
Rake::Task[:test].clear
desc 'Replaced Test Task'
task :test do; end
rake -T yields
Adding the following after the call to clear corrects it, so clear just needs to remove the params
Rake::Task[:test].instance_variable_set(:@arg_names, nil)
The text was updated successfully, but these errors were encountered: