Class: Ocular::DSL::REPLRunContext
- Inherits:
-
RunContext
- Object
- RunContext
- Ocular::DSL::REPLRunContext
- Defined in:
- lib/ocular/dsl/runcontext.rb
Instance Attribute Summary collapse
-
#do_fork ⇒ Object
readonly
Returns the value of attribute do_fork.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#handlers ⇒ Object
readonly
Returns the value of attribute handlers.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Attributes inherited from RunContext
#class_name, #event_signature, #proxy, #run_id
Instance Method Summary collapse
-
#initialize(handlers, logger) ⇒ REPLRunContext
constructor
A new instance of REPLRunContext.
Methods inherited from RunContext
#after_fork, #cleanup, #method_missing, #register_cleanup
Methods included from Inputs::Cron::DSL
Methods included from File
Methods included from Cache
Methods included from Graphite
#graphite, #graphite_get_latests
Methods included from RabbitMQ
Methods included from Mongo
Methods included from Psql
Methods included from MySQL
Methods included from 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
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_fork ⇒ Object (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 |
#events ⇒ Object (readonly)
Returns the value of attribute events.
60 61 62 |
# File 'lib/ocular/dsl/runcontext.rb', line 60 def events @events end |
#handlers ⇒ Object (readonly)
Returns the value of attribute handlers.
59 60 61 |
# File 'lib/ocular/dsl/runcontext.rb', line 59 def handlers @handlers end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
62 63 64 |
# File 'lib/ocular/dsl/runcontext.rb', line 62 def logger @logger end |