Module: Camoufox
- Defined in:
- lib/camoufox.rb,
lib/camoufox/ip.rb,
lib/camoufox/utils.rb,
lib/camoufox/addons.rb,
lib/camoufox/locale.rb,
lib/camoufox/pkgman.rb,
lib/camoufox/server.rb,
lib/camoufox/__main__.rb,
lib/camoufox/sync_api.rb,
lib/camoufox/warnings.rb,
lib/camoufox/async_api.rb,
lib/camoufox/exceptions.rb,
lib/camoufox/__version__.rb,
lib/camoufox/virtdisplay.rb,
lib/camoufox/fingerprints.rb,
lib/camoufox/configuration.rb,
lib/camoufox/native_bridge.rb
Defined Under Namespace
Modules: Addons, AsyncAPI, CLI, Fingerprints, IP, Locale, NativeBridge, Pkgman, Server, SyncAPI, Utils, Virtdisplay, Warnings
Classes: Configuration, Error, LaunchOptions, MissingNativeExtension, MissingPlaywrightDriver, NodeExecutionFailed
Constant Summary
collapse
- VERSION =
"0.5.0"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
27
28
29
|
# File 'lib/camoufox.rb', line 27
def configuration
@configuration ||= Configuration.new
end
|
23
24
25
|
# File 'lib/camoufox.rb', line 23
def configure
yield configuration
end
|
.fetch(update_browserforge: false, env: {}) ⇒ Object
39
40
41
|
# File 'lib/camoufox.rb', line 39
def fetch(update_browserforge: false, env: {})
CLI.run("fetch", update_browserforge ? ["--browserforge"] : [], env: env)
end
|
.launch_options(**kwargs) ⇒ Object
35
36
37
|
# File 'lib/camoufox.rb', line 35
def launch_options(**kwargs)
Utils.launch_options(**kwargs)
end
|
.path(env: {}) ⇒ Object
47
48
49
|
# File 'lib/camoufox.rb', line 47
def path(env: {})
CLI.run("path", [], env: env).strip
end
|
.remove(env: {}) ⇒ Object
43
44
45
|
# File 'lib/camoufox.rb', line 43
def remove(env: {})
CLI.run("remove", [], env: env)
end
|
.reset_configuration! ⇒ Object
31
32
33
|
# File 'lib/camoufox.rb', line 31
def reset_configuration!
@configuration = Configuration.new
end
|
.version(env: {}) ⇒ Object
51
52
53
|
# File 'lib/camoufox.rb', line 51
def version(env: {})
CLI.run("version", [], env: env)
end
|