Class: Txgh::Config::KeyManager
- Inherits:
-
Object
- Object
- Txgh::Config::KeyManager
show all
- Extended by:
- ProviderSupport
- Defined in:
- lib/txgh/config/key_manager.rb
Class Method Summary
collapse
provider_for, providers, register_provider, split_uri
Class Method Details
.config_from(project_name, repo_name) ⇒ Object
23
24
25
26
27
|
# File 'lib/txgh/config/key_manager.rb', line 23
def config_from(project_name, repo_name)
project_config = project_config_for(project_name)
repo_config = repo_config_for(repo_name)
ConfigPair.new(project_config, repo_config)
end
|
.config_from_project(project_name) ⇒ Object
11
12
13
14
15
|
# File 'lib/txgh/config/key_manager.rb', line 11
def config_from_project(project_name)
project_config = project_config_for(project_name)
repo_config = repo_config_for(project_config['push_translations_to'])
ConfigPair.new(project_config, repo_config)
end
|
.config_from_repo(repo_name) ⇒ Object
17
18
19
20
21
|
# File 'lib/txgh/config/key_manager.rb', line 17
def config_from_repo(repo_name)
repo_config = repo_config_for(repo_name)
project_config = project_config_for(repo_config['push_source_to'])
ConfigPair.new(project_config, repo_config)
end
|