Module: Hbc::Artifact::Installer::ScriptInstaller

Defined in:
Library/Homebrew/cask/lib/hbc/artifact/installer.rb

Instance Method Summary collapse

Instance Method Details

#install_phase(command: nil, **_) ⇒ Object



23
24
25
26
27
# File 'Library/Homebrew/cask/lib/hbc/artifact/installer.rb', line 23

def install_phase(command: nil, **_)
  ohai "Running #{self.class.dsl_key} script '#{path.relative_path_from(cask.staged_path)}'"
  FileUtils.chmod "+x", path unless path.executable?
  command.run(path, **args)
end