Class: RSMP::Supervisor::Options

Inherits:
Options
  • Object
show all
Defined in:
lib/rsmp/options/supervisor_options.rb

Overview

Configuration options for supervisors.

Constant Summary

Constants inherited from Options

Options::SCHEMAS_PATH

Instance Attribute Summary

Attributes inherited from Options

#data, #log_settings, #source

Instance Method Summary collapse

Methods inherited from Options

#[], #dig, #initialize, load_file, #schema_path, #to_h, #validate!

Constructor Details

This class inherits a constructor from RSMP::Options

Instance Method Details

#defaultsObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/rsmp/options/supervisor_options.rb', line 5

def defaults
  {
    'port' => 12_111,
    'ips' => 'all',
    'default' => {
      'sxl' => 'tlc',
      'intervals' => {
        'timer' => 1,
        'watchdog' => 1
      },
      'timeouts' => {
        'watchdog' => 2,
        'acknowledgement' => 2,
        'command' => 10,
        'status_response' => 10
      }
    }
  }
end

#schema_fileObject



25
26
27
# File 'lib/rsmp/options/supervisor_options.rb', line 25

def schema_file
  'supervisor.json'
end