Class: GitFit::Sync::Base
- Inherits:
-
Object
- Object
- GitFit::Sync::Base
- Defined in:
- lib/git_fit/sync/base.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.register_config(*keys) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/git_fit/sync/base.rb', line 4 def self.register_config(*keys) return if keys.empty? source = name.split("::").last.downcase GitFit.register_config_source( prefix: "GIT_FIT_#{source.upcase}", keys: keys, config_path: ["sync", source] ) end |