Module: Lighthouse::Preferences
- Defined in:
- lib/lighthouse/preferences.rb
Defined Under Namespace
Classes: Error
Class Attribute Summary collapse
- .chrome_flags ⇒ Object
- .lighthouse_cli ⇒ Object
- .lighthouse_options ⇒ Object
-
.remote_debugging_port ⇒ Object
Returns the value of attribute remote_debugging_port.
- .runner ⇒ Object
Class Attribute Details
.chrome_flags ⇒ Object
27 28 29 30 31 32 |
# File 'lib/lighthouse/preferences.rb', line 27 def chrome_flags return unless @chrome_flags return @chrome_flags unless @chrome_flags.is_a?(Array) @chrome_flags.map { |f| "--#{f}" }.join(' ') end |
.lighthouse_cli ⇒ Object
12 13 14 |
# File 'lib/lighthouse/preferences.rb', line 12 def lighthouse_cli @lighthouse_cli ||= get_lighthouse_cli end |
.lighthouse_options ⇒ Object
20 21 22 23 24 25 |
# File 'lib/lighthouse/preferences.rb', line 20 def return unless @lighthouse_options return @lighthouse_options unless @lighthouse_options.is_a?(Array) @lighthouse_options.map { |f| "--#{f}" }.join(' ') end |
.remote_debugging_port ⇒ Object
Returns the value of attribute remote_debugging_port.
10 11 12 |
# File 'lib/lighthouse/preferences.rb', line 10 def remote_debugging_port @remote_debugging_port end |
.runner ⇒ Object
16 17 18 |
# File 'lib/lighthouse/preferences.rb', line 16 def runner @runner ||= proc { |cmd| `#{cmd}` } end |