Sha256: e9dd7f6dca993b1de2a2c6337634576839d93a2bcd16c4c1bb00c973e749e92c
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 KB
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- ## this is the simplest auger client, written for educational purposes; ## not intended for actual use AUGER_DIR = File.dirname(File.dirname(__FILE__)) AUGER_LIB = File.join(AUGER_DIR, 'lib') ## relative path to libs (in case not installed as a gem) $LOAD_PATH.unshift(AUGER_LIB) unless $LOAD_PATH.include?(AUGER_LIB) require "auger" ## load plugins Dir["#{File.dirname(File.dirname(__FILE__))}/lib/plugins/*.rb"].each { |file| require file } ## load config file and loop projects Auger::Config.load(ARGV[0]).projects.each do |project| project.servers.each do |server| puts "[#{server.name}]" project.connections(*server.roles).each do |connection| conn = connection.try_open(server) connection.requests.each do |request| response, time = request.try_run(conn) request.tests.each do |test| result = test.run(response) puts " #{test.name}: #{result.outcome}" end end connection.try_close(conn) end end end
Version data entries
7 entries across 7 versions & 1 rubygems