Sha256: 262d298918f6ef809af2f8b8cc1169f0e2395f024e3011c2ff00820d110de186
Contents?: true
Size: 1.15 KB
Versions: 6
Compression:
Stored size: 1.15 KB
Contents
# frozen_string_literal: true require 'avm/entries/keys_constants_set' require 'avm/entries/uri_builder' require 'eac_ruby_utils/core_ext' module Avm module Instances module EntryKeys URI_FIELDS = ::Avm::Entries::UriBuilder::ENTRIES_FIELDS + %w[url] class << self def all all_keys.to_a end def keys_consts_set(prefix, suffixes) all_keys.merge(::Avm::Entries::KeysConstantsSet.new(self, prefix, suffixes).result) end private def all_keys @all_keys ||= ::Set.new end end { '' => %w[name source_instance_id], admin: URI_FIELDS + %w[api_key], data: %w[allow_loading default_dump_path], database: URI_FIELDS + %w[id limit name system timeout extra], docker: %w[registry], install: URI_FIELDS + %w[id data_path email groupname], mailer: { '' => %w[id from reply_to], smtp: URI_FIELDS + %w[address domain authentication openssl_verify_mode starttls_auto tls] }, web: URI_FIELDS }.each { |prefix, suffixes| keys_consts_set(prefix, suffixes) } end end end
Version data entries
6 entries across 6 versions & 2 rubygems