Sha256: 56f3442475db94a14b055810cfdda7031245571f945191bd80761d469f025f58
Contents?: true
Size: 1.43 KB
Versions: 5
Compression:
Stored size: 1.43 KB
Contents
# Author:: Nicolas Despres <nicolas.despres@gmail.com>. # Copyright:: Copyright (c) 2004, 2005 TTK team. All rights reserved. # License:: LGPL # $Id: Tester.rb 567 2005-04-13 08:00:06Z polrop $ require 'ttkd' module TTK module Strategies class Tester < DistStrategy include Concrete include ServiceManager def tester_uris=(other) if other.nil? @tester_uris = nil else @tester_uris = [] other.each { |uri| @tester_uris << URI.parse(uri.to_s) } end end protected def prologue super @tester_uris ||= @symtbl[:tester_uris] @tester_uris ||= [] service = Services::TesterClient.new start_service(service, nil, @tester_uris, @local_tester) @tester = service.master create(@test) end protected def epilogue stop_services super end attribute :tester_uris, 'Attach remote testers', nil, :invisible attribute :local_tester, 'Attach a local slave tester', false, :invisible attribute :test, 'The test strategy to run', :mandatory, :invisible, :dont_expand end # class Tester end # module Strategies end # module TTK
Version data entries
5 entries across 5 versions & 1 rubygems