Class: Cask::Cmd::ExternalCommand Private
- Inherits:
-
Object
- Object
- Cask::Cmd::ExternalCommand
- Defined in:
- Library/Homebrew/cask/cmd.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Wrapper class for running an external command.
Instance Method Summary collapse
- #help ⇒ Object private
-
#initialize(path) ⇒ ExternalCommand
constructor
private
A new instance of ExternalCommand.
- #run(*argv) ⇒ Object private
Constructor Details
#initialize(path) ⇒ ExternalCommand
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ExternalCommand.
227 228 229 |
# File 'Library/Homebrew/cask/cmd.rb', line 227 def initialize(path) @path = path end |
Instance Method Details
#help ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
235 236 237 |
# File 'Library/Homebrew/cask/cmd.rb', line 235 def help exec @path, "--help" end |
#run(*argv) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
231 232 233 |
# File 'Library/Homebrew/cask/cmd.rb', line 231 def run(*argv) exec @path, *argv end |