summaryrefslogtreecommitdiff
path: root/lib/gitlab/utils.rb
blob: bd184c271871e83519f2c847b1f38e1e261a2bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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