Module: FluQ

Defined in:
lib/fluq.rb,
lib/fluq/cli.rb,
lib/fluq/version.rb

Defined Under Namespace

Modules: DSL, Format, Handler, Input, Mixins, Testing, URL Classes: CLI, Error, Event, Feed, Runner, Worker

Constant Summary collapse

VERSION =
"0.8.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.rootObject (readonly)



28
29
30
# File 'lib/fluq.rb', line 28

def root
  @root
end

Class Method Details

.init!Object



40
41
42
43
44
45
46
47
# File 'lib/fluq.rb', line 40

def init!
  # Set root path
  @root = Pathname.new(ENV['FLUQ_ROOT'] || ".")

  # Setup logger
  self.logger  = ::Logger.new(STDOUT)
  logger.level = ::Logger::INFO
end

.loggerLogger

Returns the thread-safe logger instance.

Returns:

  • (Logger)

    the thread-safe logger instance



36
37
38
# File 'lib/fluq.rb', line 36

def logger
  Celluloid.logger
end

.logger=(logger) ⇒ Object

Parameters:

  • logger (Logger)


31
32
33
# File 'lib/fluq.rb', line 31

def logger=(logger)
  Celluloid.logger = logger
end