Ignore teaspoon tasks in production environment

This commit is contained in:
winniehell 2016-10-29 13:22:32 +02:00
parent dcc699afc2
commit 8a9c7b1e04
1 changed files with 20 additions and 18 deletions

View File

@ -1,3 +1,4 @@
unless Rails.env.production?
Rake::Task['teaspoon'].clear if Rake::Task.task_defined?('teaspoon')
namespace :teaspoon do
@ -21,3 +22,4 @@ task :teaspoon do
Rake::Task['teaspoon:fixtures'].invoke
Rake::Task['teaspoon:tests'].invoke
end
end