Class: Fate

Inherits:
Object
  • Object
show all
Defined in:
lib/fate.rb,
lib/fate/repl.rb,
lib/fate/logger.rb,
lib/fate/output.rb,
lib/fate/service.rb,
lib/fate/process_manager.rb

Defined Under Namespace

Modules: Output Classes: Control, MultiLogger, ProcessManager, Service

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(specification, options) ⇒ Fate

Returns a new instance of Fate.



17
18
19
20
21
# File 'lib/fate.rb', line 17

def initialize(specification, options)
  @service = Fate::Service.new(specification, options)
  @manager = Fate::ProcessManager.new(service, options)
  @control = Fate::Control.new(@manager, options)
end

Instance Attribute Details

#controlObject (readonly)

Returns the value of attribute control.



16
17
18
# File 'lib/fate.rb', line 16

def control
  @control
end

#managerObject (readonly)

Returns the value of attribute manager.



16
17
18
# File 'lib/fate.rb', line 16

def manager
  @manager
end

#serviceObject (readonly)

Returns the value of attribute service.



16
17
18
# File 'lib/fate.rb', line 16

def service
  @service
end

Class Method Details

.start(specification, &block) ⇒ Object



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

def self.start(specification, &block)
  self.new(specification).start(&block)
end