class SwarmClusterCliOpe::SyncConfigs::MongoDb::EnvConfigs
Classe interna che rappresenta le configurazioni del DB
Public Instance Methods
exclude_from_sync()
click to toggle source
Possiamo definire una lista, comma-separated, per limitare le collections da non importare
# File lib/swarm_cluster_cli_ope/sync_configs/mongo_db.rb, line 42 define_cfgs :exclude_from_sync, default_env: "EXCLUDE_FROM_SYNC", configuration_name: :exclude_from_sync, default_value: ""
excluded_collections()
click to toggle source
Helper per avere un array di collections da non sincronizzare, specifico per mongodb @return [Array<String>]
# File lib/swarm_cluster_cli_ope/sync_configs/mongo_db.rb, line 47 def excluded_collections return [] if exclude_from_sync.nil? exclude_from_sync.split(",").compact end