Welcome to mirror list, hosted at ThFree Co, Russian Federation.

utils.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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