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
22
23
24
25
26
|
# File 'lib/txgh/config/key_manager.rb', line 22
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
10
11
12
13
14
|
# File 'lib/txgh/config/key_manager.rb', line 10
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
16
17
18
19
20
|
# File 'lib/txgh/config/key_manager.rb', line 16
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
|
.project_names ⇒ Object
28
29
30
|
# File 'lib/txgh/config/key_manager.rb', line 28
def project_names
base_config['transifex']['projects'].keys
end
|