summaryrefslogtreecommitdiff
path: root/bin/check
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-12 11:29:05 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-12 11:29:05 +0000
commitae498b6cd4122d3d7f35e6b73b50c53615ca3488 (patch)
tree5ff9b6f34ad8225b63ad24813a141bdc66c0de25 /bin/check
parent79fdf65c71e90773fbf52d6832b74cf5a7124755 (diff)
parent96f0845952391531cc8bfc6b5ae13a6a65772e05 (diff)
downloadgitlab-shell-ae498b6cd4122d3d7f35e6b73b50c53615ca3488.tar.gz
Merge branch 'use-load-path' into 'master'
Use load path, set ROOT_PATH via ENV Uses load path instead of require_relative, adds an environment variable to set gitlab-shell ROOT_PATH variable (Fixes #30) See merge request !28
Diffstat (limited to 'bin/check')
-rwxr-xr-xbin/check5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/check b/bin/check
index b90e15d..19a4bff 100755
--- a/bin/check
+++ b/bin/check
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
-require_relative '../lib/gitlab_init'
-require_relative '../lib/gitlab_net'
+$:.unshift File.expand_path('../lib', __FILE__)
+require 'gitlab_init'
+require 'gitlab_net'
#
# GitLab shell check task