Class: Ocular::DSL::REPLRunContext

Inherits:
RunContext show all
Defined in:
lib/ocular/dsl/runcontext.rb

Instance Attribute Summary collapse

Attributes inherited from RunContext

#class_name, #event_signature, #proxy, #run_id

Instance Method Summary collapse

Methods inherited from RunContext

#cleanup, #method_missing, #register_cleanup

Methods included from Inputs::Cron::DSL

#cron

Methods included from RabbitMQ

#amqp

Methods included from MySQL

#mysql

Methods included from Orbit

#orbit

Methods included from Etcd

#etcd

Methods included from Fog

#autoscaling, #aws, #find_server_by_ip, #find_servers_in_autoscaling_groups

Methods included from SSH

#ssh_to

Methods included from Logging

#debug, #error, #fatal, #info, #log_cause, #log_event, #log_timing, #warn

Constructor Details

#initialize(handlers, logger) ⇒ REPLRunContext

Returns a new instance of REPLRunContext.



54
55
56
57
58
59
# File 'lib/ocular/dsl/runcontext.rb', line 54

def initialize(handlers, logger)
    super(logger)
    @events = {}
    @handlers = handlers
    @do_fork = false
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ocular::DSL::RunContext

Instance Attribute Details

#do_forkObject (readonly)

Returns the value of attribute do_fork.



51
52
53
# File 'lib/ocular/dsl/runcontext.rb', line 51

def do_fork
  @do_fork
end

#eventsObject (readonly)

Returns the value of attribute events.



50
51
52
# File 'lib/ocular/dsl/runcontext.rb', line 50

def events
  @events
end

#handlersObject (readonly)

Returns the value of attribute handlers.



49
50
51
# File 'lib/ocular/dsl/runcontext.rb', line 49

def handlers
  @handlers
end

#loggerObject (readonly)

Returns the value of attribute logger.



52
53
54
# File 'lib/ocular/dsl/runcontext.rb', line 52

def logger
  @logger
end