Module: Homebrew::ShellCommand Private

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.

Instance Method Summary collapse

Instance Method Details

#runvoid

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.

Raises:

  • (StandardError)


11
12
13
14
15
16
17
18
# File 'shell_command.rb', line 11

def run
  T.bind(self, AbstractCommand)

  sh_cmd_path = "#{self.class.dev_cmd? ? "dev-cmd" : "cmd"}/#{self.class.command_name}.sh"
  raise StandardError,
        "This command is just here for completions generation. " \
        "It's actually defined in `#{sh_cmd_path}` instead."
end