Class: TestProf::Autopilot::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/test_prof/autopilot/configuration.rb

Overview

Global configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.


25
26
27
28
29
30
# File 'lib/test_prof/autopilot/configuration.rb', line 25

def initialize
  @output = $stdout
  @tmp_dir = ENV.fetch("TEST_PROF_AUTOPILOT_TMP_DIR", "tmp/test_prof_autopilot")
  @artifacts_dir = ENV.fetch("TEST_PROF_AUTOPILOT_DIR", "test_prof_autopilot")
  @merge_format = "info"
end

Instance Attribute Details

#artifacts_dirObject

Returns the value of attribute artifacts_dir.


17
18
19
# File 'lib/test_prof/autopilot/configuration.rb', line 17

def artifacts_dir
  @artifacts_dir
end

#commandObject

Returns the value of attribute command.


17
18
19
# File 'lib/test_prof/autopilot/configuration.rb', line 17

def command
  @command
end

#merge_fileObject

Returns the value of attribute merge_file.


17
18
19
# File 'lib/test_prof/autopilot/configuration.rb', line 17

def merge_file
  @merge_file
end

#merge_formatObject

Returns the value of attribute merge_format.


17
18
19
# File 'lib/test_prof/autopilot/configuration.rb', line 17

def merge_format
  @merge_format
end

#outputObject

Returns the value of attribute output.


17
18
19
# File 'lib/test_prof/autopilot/configuration.rb', line 17

def output
  @output
end

#plan_pathObject

Returns the value of attribute plan_path.


17
18
19
# File 'lib/test_prof/autopilot/configuration.rb', line 17

def plan_path
  @plan_path
end

#tmp_dirObject

Returns the value of attribute tmp_dir.


17
18
19
# File 'lib/test_prof/autopilot/configuration.rb', line 17

def tmp_dir
  @tmp_dir
end