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

#after_fork, #cleanup, #method_missing, #register_cleanup

Methods included from Inputs::Cron::DSL

#cron

Methods included from Cache

#cache_get, #cache_set

Methods included from Graphite

#graphite, #graphite_get_latests

Methods included from RabbitMQ

#amqp

Methods included from MySQL

#mysql

Methods included from Orbit

#orbit

Methods included from Etcd

#etcd, #locked?, #ttl_lock, #unlock

Methods included from Fog

#autoscaling, #aws, #find_server_by_id, #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.



61
62
63
64
65
66
# File 'lib/ocular/dsl/runcontext.rb', line 61

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.



58
59
60
# File 'lib/ocular/dsl/runcontext.rb', line 58

def do_fork
  @do_fork
end

#eventsObject (readonly)

Returns the value of attribute events.



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

def events
  @events
end

#handlersObject (readonly)

Returns the value of attribute handlers.



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

def handlers
  @handlers
end

#loggerObject (readonly)

Returns the value of attribute logger.



59
60
61
# File 'lib/ocular/dsl/runcontext.rb', line 59

def logger
  @logger
end