Class: GitTree::Config
- Inherits:
-
Anyway::Config
- Object
- Anyway::Config
- GitTree::Config
- Defined in:
- lib/util/config.rb
Overview
Centralized configuration for the git-tree gem. Uses anyway_config to load settings from:
- A YAML file at ~/.treeconfig.yml
- Environment variables (e.g., GIT_TREE_GIT_TIMEOUT)
- Default values defined here.
Class Method Summary collapse
-
.default_config_path ⇒ Object
The location of the user's config file.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Override initialize to set defaults for nil values after loading.
Constructor Details
Class Method Details
.default_config_path ⇒ Object
The location of the user's config file.
15 16 17 |
# File 'lib/util/config.rb', line 15 def self.default_config_path File.('~/.treeconfig.yml') end |