gitlab-org--gitlab-foss/lib/gitlab/utils.rb
2014-11-06 13:07:42 +02:00

13 lines
245 B
Ruby

module Gitlab
module Utils
extend self
# Run system command without outputting to stdout.
#
# @param cmd [Array<String>]
# @return [Boolean]
def system_silent(cmd)
Popen::popen(cmd).last.zero?
end
end
end