summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-12 08:24:29 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-03-12 08:24:29 +0000
commitd207d69ba2d74856b81f8c88159cdcdde36d37ca (patch)
tree9d382fa05c64dbe54842343f60309458ce833ba6
parent3df553676aca6f07864c3c7bbd4422e4d70b454c (diff)
parentbb4f64d67e178f6a2c623d519dfae813b7805e54 (diff)
downloadgitlab-shell-d207d69ba2d74856b81f8c88159cdcdde36d37ca.tar.gz
Merge branch 'exec_warning' into 'master'
Explain why GitlabShell#exec_cmd has no tests
-rw-r--r--lib/gitlab_shell.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb
index de73311..e2a015a 100644
--- a/lib/gitlab_shell.rb
+++ b/lib/gitlab_shell.rb
@@ -59,6 +59,7 @@ class GitlabShell
api.allowed?(@git_cmd, @repo_name, @key_id, '_any')
end
+ # This method is not covered by Rspec because it ends the current Ruby process.
def exec_cmd(*args)
Kernel::exec({'PATH' => ENV['PATH'], 'GL_ID' => ENV['GL_ID']}, *args, unsetenv_others: true)
end