Method: Bolt::Config.defaults_schema
- Defined in:
- lib/bolt/config.rb
.defaults_schema ⇒ Object
Builds the schema for bolt-defaults.yaml used by the validator.
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/bolt/config.rb', line 53 def self.defaults_schema schema = { type: Hash, properties: DEFAULTS_OPTIONS.map { |opt| [opt, _ref: opt] }.to_h, definitions: OPTIONS.merge(transport_definitions) } schema[:definitions]['inventory-config'][:properties] = transport_definitions schema end |