14 lines
245 B
Ruby
14 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
|