Class: BuildEm::Configuration

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

Overview

configuration.workers 2 configuration.output_file “output.out” configuration.error_file “errors.out”

Instance Attribute Summary collapse

Instance Method Summary collapse

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_fileObject

Returns the value of attribute error_file.



7
8
9
# File 'lib/buildem/configuration.rb', line 7

def error_file
  @error_file
end

#output_fileObject

Returns the value of attribute output_file.



7
8
9
# File 'lib/buildem/configuration.rb', line 7

def output_file
  @output_file
end

#run_outputObject

Returns the value of attribute run_output.



7
8
9
# File 'lib/buildem/configuration.rb', line 7

def run_output
  @run_output
end

#workersObject

Returns the value of attribute workers.



7
8
9
# File 'lib/buildem/configuration.rb', line 7

def workers
  @workers
end