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 File

#getfullpath

Methods included from Cache

#cache_get, #cache_set

Methods included from Graphite

#graphite, #graphite_get_latests

Methods included from RabbitMQ

#amqp

Methods included from Mongo

#mongo

Methods included from Psql

#psql

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, #get_servers_in_autoscaling_group

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.



64
65
66
67
68
69
# File 'lib/ocular/dsl/runcontext.rb', line 64

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.



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

def do_fork
  @do_fork
end

#eventsObject (readonly)

Returns the value of attribute events.



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

def events
  @events
end

#handlersObject (readonly)

Returns the value of attribute handlers.



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

def handlers
  @handlers
end

#loggerObject (readonly)

Returns the value of attribute logger.



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

def logger
  @logger
end