Sha256: e19a6d09856ee097e72058eca3a22513d9d4b656d40c7491b4627d49a59e653b
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
require 'spec' require 'spec/runner/formatter/base_text_formatter' require 'specjour/protocol' require 'specjour/core_ext/array' autoload :URI, 'uri' autoload :DRb, 'drb' autoload :Forwardable, 'forwardable' autoload :GServer, 'gserver' autoload :Timeout, 'timeout' autoload :Benchmark, 'benchmark' autoload :Logger, 'logger' autoload :Socket, 'socket' module Specjour autoload :Connection, 'specjour/connection' autoload :Dispatcher, 'specjour/dispatcher' autoload :DistributedFormatter, 'specjour/distributed_formatter' autoload :FinalReport, 'specjour/final_report' autoload :Manager, 'specjour/manager' autoload :MarshalableFailureFormatter, 'specjour/marshalable_failure_formatter' autoload :Printer, 'specjour/printer' autoload :RsyncDaemon, 'specjour/rsync_daemon' autoload :Worker, 'specjour/worker' VERSION = "0.1.15".freeze class Error < StandardError; end def self.logger @logger ||= new_logger end def self.new_logger(level = Logger::UNKNOWN) @logger = Logger.new $stdout @logger.level = level @logger end def self.log? logger.level != Logger::UNKNOWN end def self.ip_from_hostname(hostname) Socket.getaddrinfo(hostname, nil, Socket::AF_INET, Socket::SOCK_STREAM).first.fetch(3) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
specjour-0.1.15 | lib/specjour.rb |