mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 05:06:46 +10:00
15 lines
268 B
Ruby
15 lines
268 B
Ruby
module Gitlab
|
|
module Utils
|
|
extend self
|
|
|
|
# Run system command without outputting to stdout.
|
|
#
|
|
# @param cmd [Array<String>]
|
|
# @return [Integer] exit status
|
|
def system_silent(cmd)
|
|
IO.popen(cmd).close
|
|
$?.exitstatus
|
|
end
|
|
end
|
|
end
|