Class: BuildEm::Configuration
- Inherits:
-
Object
- Object
- BuildEm::Configuration
- Defined in:
- lib/buildem/configuration.rb
Overview
configuration.workers 2 configuration.output_file “output.out” configuration.error_file “errors.out”
Instance Attribute Summary collapse
-
#error_file ⇒ Object
Returns the value of attribute error_file.
-
#output_file ⇒ Object
Returns the value of attribute output_file.
-
#run_output ⇒ Object
Returns the value of attribute run_output.
-
#workers ⇒ Object
Returns the value of attribute workers.
Instance Method Summary collapse
-
#initialize(optz = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(optz = {}) ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 |
# File 'lib/buildem/configuration.rb', line 9 def initialize(optz={}) @workers ||= (optz[:workers] || 2) @output_file ||= (optz[:output_file] || "output.out") @error_file ||= (optz[:error_file] || "error.out") @run_output ||= optz[:run_output] end |
Instance Attribute Details
#error_file ⇒ Object
Returns the value of attribute error_file.
7 8 9 |
# File 'lib/buildem/configuration.rb', line 7 def error_file @error_file end |
#output_file ⇒ Object
Returns the value of attribute output_file.
7 8 9 |
# File 'lib/buildem/configuration.rb', line 7 def output_file @output_file end |
#run_output ⇒ Object
Returns the value of attribute run_output.
7 8 9 |
# File 'lib/buildem/configuration.rb', line 7 def run_output @run_output end |
#workers ⇒ Object
Returns the value of attribute workers.
7 8 9 |
# File 'lib/buildem/configuration.rb', line 7 def workers @workers end |