Module: Raz::Constants
- Defined in:
- lib/raz/constants.rb
Constant Summary collapse
- CONFIG_FOLDER_BASE_PATH =
'.raz'
- CONFIG_FILE_BASE_PATH =
File.join(CONFIG_FOLDER_BASE_PATH, 'config.rb')
- BACKUP_CONFIG_FOLDER_BASE_PATH =
backup paths ================
'config'
- BACKUP_DATA_BASE_PATH =
'data'
- BACKUP_INFO_BASE_PATH =
'raz_info.yaml'
Instance Method Summary collapse
Instance Method Details
#backup_config_file_path(backup_path) ⇒ Object
15 16 17 |
# File 'lib/raz/constants.rb', line 15 def backup_config_file_path(backup_path) File.join(backup_path, BACKUP_CONFIG_FOLDER_BASE_PATH, 'config.rb') end |
#config_path(home = Dir.home) ⇒ Object
7 8 9 |
# File 'lib/raz/constants.rb', line 7 def config_path(home = Dir.home) File.join(home, CONFIG_FILE_BASE_PATH) end |