Class: Roundhouse::Script::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/roundhouse/script.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&blk) ⇒ Configuration

Returns a new instance of Configuration.



31
32
33
# File 'lib/roundhouse/script.rb', line 31

def initialize(&blk)
  @instrumentation = blk || proc { |script_name, runtime, eval_type| Roundhouse.logger.info "REDIS LUA [#{eval_type}]: #{script_name} #{runtime}" }
end

Instance Attribute Details

#instrumentationObject (readonly)

Returns the value of attribute instrumentation.



29
30
31
# File 'lib/roundhouse/script.rb', line 29

def instrumentation
  @instrumentation
end