Module: Harmoniser

Extended by:
Configurable, Loggable
Defined in:
lib/harmoniser.rb,
lib/harmoniser/cli.rb,
lib/harmoniser/parser.rb,
lib/harmoniser/options.rb,
lib/harmoniser/version.rb,
lib/harmoniser/launcher.rb,
lib/harmoniser/loggable.rb,
lib/harmoniser/topology.rb,
lib/harmoniser/publisher.rb,
lib/harmoniser/connection.rb,
lib/harmoniser/definition.rb,
lib/harmoniser/subscriber.rb,
lib/harmoniser/connectable.rb,
lib/harmoniser/configurable.rb,
lib/harmoniser/configuration.rb,
lib/harmoniser/launcher/base.rb,
lib/harmoniser/launcher/bounded.rb,
lib/harmoniser/launcher/unbounded.rb,
lib/harmoniser/work_pool_reporter.rb,
lib/harmoniser/subscriber/registry.rb

Defined Under Namespace

Modules: Configurable, Connectable, Definition, Launcher, Loggable, Publisher, Subscriber Classes: CLI, Configuration, Connection, Parser, Topology, WorkPoolReporter

Constant Summary collapse

Options =
Data.define(:concurrency, :environment, :require, :verbose, :timeout) do
  def production?
    environment == "production"
  end

  def unbounded_concurrency?
    concurrency == Float::INFINITY
  end

  def verbose?
    !!verbose
  end
end
VERSION =
"0.11.0"

Class Method Summary collapse

Methods included from Configurable

configuration, configure, default_configuration

Methods included from Loggable

logger

Class Method Details

.server?Boolean

Returns:

  • (Boolean)


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

def server?
  !!defined?(CLI)
end