Module: Motor::Configs
- Defined in:
- lib/motor/configs.rb,
lib/motor/configs/write_to_file.rb,
lib/motor/configs/sync_from_file.rb,
lib/motor/configs/sync_from_hash.rb,
lib/motor/configs/load_from_cache.rb,
lib/motor/configs/sync_middleware.rb,
lib/motor/configs/build_ui_app_tag.rb,
lib/motor/configs/sync_with_remote.rb,
lib/motor/configs/build_configs_hash.rb
Defined Under Namespace
Modules: BuildConfigsHash, BuildUiAppTag, LoadFromCache, SyncFromFile, SyncFromHash, SyncWithRemote, WriteToFile Classes: SyncMiddleware
Constant Summary collapse
- FILE_PATH =
'config/motor.yml'
- SYNC_API_PATH =
'/motor_configs_sync'
- SYNC_ACCESS_KEY =
ENV.fetch('MOTOR_SYNC_API_KEY', '')
- MEMFS_PATH =
'/__enclose_io_memfs__/'
- PWD_FILE_NAME =
'motor-admin.yml'
Class Method Summary collapse
Class Method Details
.file_path ⇒ String
14 15 16 17 18 19 20 |
# File 'lib/motor/configs.rb', line 14 def file_path if Rails.root.to_s.start_with?(MEMFS_PATH) [ENV['PWD'], PWD_FILE_NAME].join('/') else Rails.root.join(FILE_PATH).to_s end end |