Class: Venetian::BrowserInstaller

Inherits:
Object
  • Object
show all
Defined in:
lib/venetian/browser_installer.rb

Overview

# Browser Installer

Installs browsers using the Playwright executable.

Defined Under Namespace

Classes: InstallError

Class Method Summary collapse

Class Method Details

.install(browser = nil) ⇒ Object

Installs a browser. Raises InstallError if installation fails.



20
21
22
23
24
# File 'lib/venetian/browser_installer.rb', line 20

def self.install(browser = nil)
  Executable.system "install", *browser&.to_s, exception: true
rescue StandardError => e
  raise InstallError, e.message
end