Better names for tasks

This commit is contained in:
Eric Davis
2009-01-23 14:36:03 -08:00
parent 0eb53f9cbd
commit f3e682943f
+3 -3
View File
@@ -1,7 +1,7 @@
namespace :rate_plugin do
namespace :budget do
desc "Export the values of the Budget plugin to a file"
task :pre => :environment do
desc "Export the values of the Budget plugin to a file before installing the rate plugin"
task :pre_install_export => :environment do
unless Redmine::Plugin.registered_plugins[:budget_plugin].version == "0.1.0"
puts "ERROR: This task is only needed when upgrading from version 0.1.0 to version 0.2.0"
@@ -39,7 +39,7 @@ namespace :rate_plugin do
end
desc "Check the values of the export"
task :post => :environment do
task :post_install_check => :environment do
unless Redmine::Plugin.registered_plugins[:budget_plugin].version == "0.2.0"
puts "ERROR: Please upgrade the budget_plugin to 0.2.0 now"