summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-14 14:23:28 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-14 14:23:28 +0200
commitfa3c087a4cad7a62b2aec9df88d379c1822e0d0c (patch)
tree999fff8b60d4e9442238366696618c2faeca48e5
parentb5d81174fb12296ade36ec1f52546b8527bbdcf1 (diff)
downloadgitlab-ce-fa3c087a4cad7a62b2aec9df88d379c1822e0d0c.tar.gz
Clear rake task only if defined
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--lib/tasks/spec.rake2
-rw-r--r--lib/tasks/spinach.rake2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/spec.rake b/lib/tasks/spec.rake
index 4e562459e15..90a1809914b 100644
--- a/lib/tasks/spec.rake
+++ b/lib/tasks/spec.rake
@@ -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
diff --git a/lib/tasks/spinach.rake b/lib/tasks/spinach.rake
index 60d4d6343b7..c23d0e0e188 100644
--- a/lib/tasks/spinach.rake
+++ b/lib/tasks/spinach.rake
@@ -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