Clear rake task only if defined

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-03-14 14:23:28 +02:00
parent b5d81174fb
commit fa3c087a4c
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
Rake::Task["spec"].clear
Rake::Task["spec"].clear if Rake::Task.task_defined?('spec')
desc "GITLAB | Run specs"
task :spec do

View file

@ -1,4 +1,4 @@
Rake::Task["spinach"].clear
Rake::Task["spinach"].clear if Rake::Task.task_defined?('spinach')
desc "GITLAB | Run spinach"
task :spinach do