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