Exception: OperationInProgressError Private
- Defined in:
- exceptions.rb
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Raised when another Homebrew operation is already in progress.
Instance Method Summary collapse
- #initialize(locked_path) ⇒ void constructor private
Constructor Details
#initialize(locked_path) ⇒ 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.
384 385 386 387 388 389 390 391 392 393 394 395 |
# File 'exceptions.rb', line 384 def initialize(locked_path) full_command = Homebrew.running_command_with_args.presence || "brew" lock_context = if (env_lock_context = Homebrew::EnvConfig.lock_context.presence) "\n#{env_lock_context}" end = <<~EOS A `#{full_command}` process has already locked #{locked_path}.#{lock_context} Please wait for it to finish or terminate it to continue. EOS super end |