Class: Pansophy::ConfigSynchronizer
- Inherits:
-
Object
- Object
- Pansophy::ConfigSynchronizer
- Defined in:
- lib/pansophy/config_synchronizer.rb
Instance Attribute Summary collapse
- #config_bucket_name ⇒ Object
- #config_local_folder ⇒ Object
- #config_remote_folder ⇒ Object
- #version ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#config_bucket_name ⇒ Object
13 14 15 |
# File 'lib/pansophy/config_synchronizer.rb', line 13 def config_bucket_name @config_bucket_name ||= ENV['CONFIG_BUCKET_NAME'] end |
#config_local_folder ⇒ Object
21 22 23 |
# File 'lib/pansophy/config_synchronizer.rb', line 21 def config_local_folder @config_local_folder ||= (ENV['CONFIG_LOCAL_FOLDER'] || ConfigPath.find!) end |
#config_remote_folder ⇒ Object
17 18 19 |
# File 'lib/pansophy/config_synchronizer.rb', line 17 def config_remote_folder @config_remote_folder ||= ENV.fetch('CONFIG_REMOTE_FOLDER', 'config') end |
#version ⇒ Object
25 26 27 |
# File 'lib/pansophy/config_synchronizer.rb', line 25 def version @version ||= ENV.fetch('CONFIG_VERSION', '1.0') end |