Class: RSMP::Site::Options

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

Overview

Configuration options for sites.

Direct Known Subclasses

TLC::TrafficControllerSite::Options

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, #log_schema_path, #schema_path, #to_h, #validate!, #validate_log_settings!, yaml_file?

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
# File 'lib/rsmp/options/site_options.rb', line 5

def defaults
  {
    'site_id' => 'RN+SI0001',
    'connection_role' => 'client',
    'ip' => '0.0.0.0',
    'supervisors' => default_supervisors,
    'sxls' => default_sxls,
    'intervals' => default_intervals,
    'timeouts' => default_timeouts,
    'send_after_connect' => true,
    'message_buffer' => default_message_buffer,
    'components' => default_components
  }
end

#schema_fileObject



20
21
22
# File 'lib/rsmp/options/site_options.rb', line 20

def schema_file
  'site.json'
end