Class: GitBak::Config::ReposCfg
- Inherits:
-
ServiceCfg
- Object
- ServiceCfg
- GitBak::Config::ReposCfg
- Defined in:
- lib/gitbak/config.rb
Overview
repository configuration
Instance Attribute Summary
Attributes inherited from ServiceCfg
Instance Method Summary collapse
-
#_service(name, dir, user, opts = {}) ⇒ Object
set service repo.
Methods inherited from ServiceCfg
Constructor Details
This class inherits a constructor from GitBak::Config::ServiceCfg
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class GitBak::Config::ServiceCfg
Instance Method Details
#_service(name, dir, user, opts = {}) ⇒ Object
set service repo
60 61 62 63 64 |
# File 'lib/gitbak/config.rb', line 60 def _service (name, dir, user, opts = {}) c = opts.merge dir: dir, user: user c[:auth] = c[:user] if c[:auth] == true (@_data[name] ||= []) << c end |