Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-03 04:41:05 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-03 04:41:05 +0300
commitcc877c53abbb1a8799b35dddac35b963dd5ecfdd (patch)
tree64348dd0f8387a3e7d22b1ae9430521ffdc83b91 /lib/tasks/brakeman.rake
parent5b2b9a1f1fcfa323ae56d0d0214ff61bb6088321 (diff)
Add rake task for brakeman
Diffstat (limited to 'lib/tasks/brakeman.rake')
-rw-r--r--lib/tasks/brakeman.rake9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tasks/brakeman.rake b/lib/tasks/brakeman.rake
new file mode 100644
index 00000000000..0a1e76ea822
--- /dev/null
+++ b/lib/tasks/brakeman.rake
@@ -0,0 +1,9 @@
+desc 'Security check via brakeman'
+task :brakeman do
+ if system("brakeman -w3 -z")
+ exit 0
+ else
+ puts 'Security check failed'
+ exit 1
+ end
+end