
Co-authored-by: Patrick Linnane <patrick@linnane.io> Co-authored-by: Carlo Cabrera <github@carlo.cab> Co-authored-by: Thierry Moisan <thierry.moisan@gmail.com> Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
29 lines
688 B
Ruby
29 lines
688 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
require "services/cli"
|
|
|
|
module Homebrew
|
|
module Services
|
|
module Commands
|
|
module Stop
|
|
TRIGGERS = %w[stop unload terminate term t u].freeze
|
|
|
|
sig {
|
|
params(
|
|
targets: T::Array[Services::FormulaWrapper],
|
|
verbose: T::Boolean,
|
|
no_wait: T::Boolean,
|
|
max_wait: T.nilable(Float),
|
|
keep: T::Boolean,
|
|
).void
|
|
}
|
|
def self.run(targets, verbose:, no_wait:, max_wait:, keep:)
|
|
Services::Cli.check!(targets)
|
|
Services::Cli.stop(targets, verbose:, no_wait:, max_wait:, keep:)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|