Sha256: c5bda3a7b53f8fa6a6c2522ad81f6cfc675b9bd39697d7f19fd733d7f459cc25

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

require 'drb'

autoload :URI, 'uri'
autoload :Forwardable, 'forwardable'
autoload :GServer, 'gserver'
autoload :Timeout, 'timeout'
autoload :Benchmark, 'benchmark'
autoload :Logger, 'logger'
autoload :Socket, 'socket'

module Specjour
  autoload :CPU, 'specjour/cpu'
  autoload :Connection, 'specjour/connection'
  autoload :Dispatcher, 'specjour/dispatcher'
  autoload :Manager, 'specjour/manager'
  autoload :OpenStruct, 'ostruct'
  autoload :Printer, 'specjour/printer'
  autoload :Protocol, 'specjour/protocol'
  autoload :RsyncDaemon, 'specjour/rsync_daemon'
  autoload :SocketHelpers, 'specjour/socket_helpers'
  autoload :Worker, 'specjour/worker'

  autoload :Cucumber, 'specjour/cucumber'
  autoload :Rspec, 'specjour/rspec'

  VERSION = "0.2.2".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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
specjour-0.2.2 lib/specjour.rb