Class: Cask::Cmd::ExternalCommand

Inherits:
Object
  • Object
show all
Defined in:
brew/Library/Homebrew/cask/cmd.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ ExternalCommand

Returns a new instance of ExternalCommand.



226
227
228
# File 'brew/Library/Homebrew/cask/cmd.rb', line 226

def initialize(path)
  @path = path
end

Instance Method Details

#runObject



230
231
232
# File 'brew/Library/Homebrew/cask/cmd.rb', line 230

def run(*)
  exec @path, *ARGV[1..]
end