module DeltaTest

Constants

ACTIVE_FLAG
MAJOR
MINOR
REVISION
VERBOSE_FLAG
VERSION

Attributes

config[R]

Public Class Methods

active?() click to toggle source
# File lib/delta_test.rb, line 37
def active?
  return !!@active unless @active.nil?
  @active = (!ENV[ACTIVE_FLAG].nil? && ENV[ACTIVE_FLAG] !~ /0|false/i)
end
configure(&block) click to toggle source
# File lib/delta_test.rb, line 33
def configure(&block)
  config.update(&block)
end
log(*args) click to toggle source
# File lib/delta_test.rb, line 47
def log(*args)
  puts(*args) if verbose?
end
tester_id() click to toggle source
# File lib/delta_test.rb, line 51
def tester_id
  return @tester_id if @tester_id
  t = Time.now
  @tester_id = '%d-%d-%d' % [t.to_i, t.nsec, $$]
end
verbose?() click to toggle source
# File lib/delta_test.rb, line 42
def verbose?
  return !!@verbose unless @verbose.nil?
  @verbose = (!ENV[VERBOSE_FLAG].nil? && ENV[VERBOSE_FLAG] !~ /0|false/i)
end