Module: Tapsoob

Defined in:
lib/tapsoob.rb,
lib/tapsoob/log.rb,
lib/tapsoob/utils.rb,
lib/tapsoob/config.rb,
lib/tapsoob/errors.rb,
lib/tapsoob/schema.rb,
lib/tapsoob/railtie.rb,
lib/tapsoob/version.rb,
lib/tapsoob/cli/root.rb,
lib/tapsoob/operation.rb,
lib/tapsoob/cli/schema.rb,
lib/tapsoob/data_stream.rb,
lib/tapsoob/cli/data_stream.rb

Defined Under Namespace

Modules: CLI, Schema, Utils Classes: BaseError, Chunksize, Config, CorruptedData, DataStream, DataStreamKeyed, DuplicatePrimaryKeyError, InvalidData, NotImplemented, Operation, Pull, Push, Railtie

Constant Summary collapse

VERSION =
"0.5.24".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exiting=(val) ⇒ Object



8
9
10
# File 'lib/tapsoob/config.rb', line 8

def self.exiting=(val)
  @@exiting = val
end

.logObject



7
8
9
10
11
12
13
14
15
# File 'lib/tapsoob/log.rb', line 7

def self.log
  @@log ||= begin
    require 'logger'
    log = Logger.new(STDERR)
    log.level = Logger::INFO
    log.datetime_format = "%Y-%m-%d %H:%M:%S"
    log
  end
end

.log=(log) ⇒ Object



3
4
5
# File 'lib/tapsoob/log.rb', line 3

def self.log=(log)
  @@log = log
end

Instance Method Details

#exiting?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/tapsoob/config.rb', line 12

def exiting?
  (@@exiting ||= false) == true
end