Module: Lighthouse::Preferences

Defined in:
lib/lighthouse/preferences.rb

Defined Under Namespace

Classes: Error

Class Attribute Summary collapse

Class Attribute Details

.chrome_flagsObject



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_cliObject



12
13
14
# File 'lib/lighthouse/preferences.rb', line 12

def lighthouse_cli
  @lighthouse_cli ||= get_lighthouse_cli
end

.lighthouse_optionsObject



20
21
22
23
24
25
# File 'lib/lighthouse/preferences.rb', line 20

def lighthouse_options
  return unless @lighthouse_options
  return @lighthouse_options unless @lighthouse_options.is_a?(Array)

  @lighthouse_options.map { |f| "--#{f}" }.join(' ')
end

.remote_debugging_portObject

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

.runnerObject



16
17
18
# File 'lib/lighthouse/preferences.rb', line 16

def runner
  @runner ||= proc { |cmd| `#{cmd}` }
end