Class: GroongaDelta::ApplyConfig

Inherits:
Config
  • Object
show all
Defined in:
lib/groonga-delta/apply-config.rb

Defined Under Namespace

Classes: Groonga, Local

Instance Method Summary collapse

Methods inherited from Config

#log_age, #log_level, #log_max_size, #log_path, #log_period_suffix, #logger, #polling_interval

Constructor Details

#initialize(dir) ⇒ ApplyConfig

Returns a new instance of ApplyConfig.



20
21
22
23
# File 'lib/groonga-delta/apply-config.rb', line 20

def initialize(dir)
  super("groonga-delta-apply", dir)
  validate_on_error(on_error)
end

Instance Method Details

#groongaObject



29
30
31
# File 'lib/groonga-delta/apply-config.rb', line 29

def groonga
  Groonga.new(@dir, @data["groonga"] || {})
end

#localObject



33
34
35
# File 'lib/groonga-delta/apply-config.rb', line 33

def local
  Local.new(@dir, @data["local"] || {})
end

#on_errorObject



25
26
27
# File 'lib/groonga-delta/apply-config.rb', line 25

def on_error
  @data["on_error"] || "error"
end