/
specjour.rb
51 lines (42 loc) · 1.37 KB
/
specjour.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
require 'drb'
autoload :URI, 'uri'
autoload :Forwardable, 'forwardable'
autoload :GServer, 'gserver'
autoload :Timeout, 'timeout'
autoload :Benchmark, 'benchmark'
autoload :Logger, 'logger'
autoload :Socket, 'socket'
autoload :StringIO, 'stringio'
module Specjour
autoload :CLI, 'specjour/cli'
autoload :CPU, 'specjour/cpu'
autoload :Configuration, 'specjour/configuration'
autoload :Connection, 'specjour/connection'
autoload :DbScrub, 'specjour/db_scrub'
autoload :Dispatcher, 'specjour/dispatcher'
autoload :Manager, 'specjour/manager'
autoload :OpenStruct, 'ostruct'
autoload :Printer, 'specjour/printer'
autoload :Protocol, 'specjour/protocol'
autoload :QuietFork, 'specjour/quiet_fork'
autoload :RsyncDaemon, 'specjour/rsync_daemon'
autoload :SocketHelper, 'specjour/socket_helper'
autoload :Worker, 'specjour/worker'
autoload :Cucumber, 'specjour/cucumber'
autoload :Rspec, 'specjour/rspec'
VERSION = "0.3.0.rc1".freeze
def self.logger
@logger ||= new_logger
end
def self.new_logger(level = Logger::UNKNOWN)
@logger = Logger.new $stderr
@logger.level = level
@logger
end
def self.log?
logger.level != Logger::UNKNOWN
end
Error = Class.new(StandardError)
PROGRAM_NAME = $PROGRAM_NAME # keep a reference of the original program name
GC.copy_on_write_friendly = true if GC.respond_to?(:copy_on_write_friendly=)
end