Module: Homebrew::Services::Commands::Cleanup Private
- Defined in:
- services/commands/cleanup.rb
This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
Constant Summary collapse
- TRIGGERS =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
%w[cleanup clean cl rm].freeze
Class Method Summary collapse
- .run ⇒ void private
Class Method Details
.run ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
This method returns an undefined value.
13 14 15 16 17 18 19 20 |
# File 'services/commands/cleanup.rb', line 13 def self.run cleaned = [] cleaned += Services::Cli.kill_orphaned_services cleaned += Services::Cli.remove_unused_service_files puts "All #{System.root? ? "root" : "user-space"} services OK, nothing cleaned..." if cleaned.empty? end |