Class: GitBak::Config::ReposCfg

Inherits:
ServiceCfg show all
Defined in:
lib/gitbak/config.rb

Overview

repository configuration

Instance Attribute Summary

Attributes inherited from ServiceCfg

#_data

Instance Method Summary collapse

Methods inherited from ServiceCfg

#initialize, #method_missing

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