Class: Docapurl::Cli
- Inherits:
-
Thor
- Object
- Thor
- Docapurl::Cli
- Defined in:
- lib/docapurl.rb
Overview
Your code goes here…
Instance Method Summary collapse
Instance Method Details
#cap(url, path = nil) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/docapurl.rb', line 18 def cap(url, path = nil) = { xvfb: .xvfb, headless: .headless, browser_path: .browser_path }.reject { |_, v| v.nil? } Docapurl::Browser.cap(url, path, , { max_pagedown: .max_pagedown, sleep_before_screen: .sleep_before_screen, pagedown_to_bottom: .pagedown_to_bottom }) end |