Class: BuildEval::Monitor::Server

Inherits:
Base
  • Object
show all
Defined in:
lib/build_eval/monitor/server.rb

Instance Method Summary collapse

Methods inherited from Base

#+

Constructor Details

#initialize(args) ⇒ Server

Returns a new instance of Server.


6
7
8
9
# File 'lib/build_eval/monitor/server.rb', line 6

def initialize(args)
  @server               = args[:server]
  @build_configurations = args[:build_configurations]
end

Instance Method Details

#evaluateObject


11
12
13
14
15
16
17
# File 'lib/build_eval/monitor/server.rb', line 11

def evaluate
  build_results = @build_configurations.map do |build_configuration|
    build_name, branch_name = build_configuration.split(":")
    @server.build_result(build_name, branch_name)
  end
  BuildEval::Result::ServerResult.new(@server, build_results)
end