Module: Legion

Defined in:
lib/legion.rb,
lib/legion/cli.rb,
lib/legion/lex.rb,
lib/legion/runner.rb,
lib/legion/process.rb,
lib/legion/service.rb,
lib/legion/version.rb,
lib/legion/cli/task.rb,
lib/legion/cli/chain.rb,
lib/legion/cli/cohort.rb,
lib/legion/extensions.rb,
lib/legion/runner/log.rb,
lib/legion/cli/trigger.rb,
lib/legion/cli/version.rb,
lib/legion/supervision.rb,
lib/legion/cli/function.rb,
lib/legion/cli/lex/actor.rb,
lib/legion/cli/lex/queue.rb,
lib/legion/runner/status.rb,
lib/legion/cli/lex/runner.rb,
lib/legion/cli/lex/message.rb,
lib/legion/extensions/core.rb,
lib/legion/extensions/data.rb,
lib/legion/cli/lex/exchange.rb,
lib/legion/cli/relationship.rb,
lib/legion/extensions/transport.rb,
lib/legion/extensions/data/model.rb,
lib/legion/extensions/actors/base.rb,
lib/legion/extensions/actors/loop.rb,
lib/legion/extensions/actors/once.rb,
lib/legion/extensions/actors/poll.rb,
lib/legion/extensions/helpers/lex.rb,
lib/legion/extensions/actors/every.rb,
lib/legion/extensions/helpers/base.rb,
lib/legion/extensions/helpers/core.rb,
lib/legion/extensions/helpers/data.rb,
lib/legion/extensions/helpers/task.rb,
lib/legion/extensions/builders/base.rb,
lib/legion/extensions/data/migrator.rb,
lib/legion/extensions/helpers/cache.rb,
lib/legion/extensions/actors/nothing.rb,
lib/legion/extensions/helpers/logger.rb,
lib/legion/extensions/actors/defaults.rb,
lib/legion/extensions/builders/actors.rb,
lib/legion/extensions/builders/helpers.rb,
lib/legion/extensions/builders/runners.rb,
lib/legion/extensions/helpers/transport.rb,
lib/legion/extensions/actors/subscription.rb

Defined Under Namespace

Modules: Extensions, Runner, Supervision Classes: CLI, Cli, Process, Service

Constant Summary collapse

VERSION =
'1.2.1'.freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#serviceObject (readonly)

Returns the value of attribute service.



10
11
12
# File 'lib/legion.rb', line 10

def service
  @service
end

Class Method Details

.reloadObject



21
22
23
# File 'lib/legion.rb', line 21

def self.reload
  @service.reload
end

.shutdownObject



17
18
19
# File 'lib/legion.rb', line 17

def self.shutdown
  @service.shutdown
end

.startObject



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

def self.start
  @service = Legion::Service.new
  Legion::Logging.info("Started Legion v#{Legion::VERSION}")
end