Module: Homebrew::ShellCommand Private
- Extended by:
- T::Helpers
- Included in:
- Cmd::Casks, Cmd::Formulae, Cmd::Repository, Cmd::SetupRuby, Cmd::Shellenv, Cmd::Update, Cmd::UpdateReset, Cmd::VendorInstall, Cmd::Version, DevCmd::Rubocop
- Defined in:
- shell_command.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.
Instance Method Summary collapse
- #run ⇒ void private
Instance 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.
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 |