Class: Txgh::Config::TxManager

Inherits:
Object
  • Object
show all
Extended by:
ProviderSupport
Defined in:
lib/txgh/config/tx_manager.rb

Class Method Summary collapse

Methods included from ProviderSupport

provider_for, providers, register_provider, split_uri

Class Method Details

.tx_config(transifex_project, git_repo, ref = nil) ⇒ Object



7
8
9
10
11
# File 'lib/txgh/config/tx_manager.rb', line 7

def tx_config(transifex_project, git_repo, ref = nil)
  options = { git_repo: git_repo, ref: ref }
  scheme, payload = split_uri(transifex_project.tx_config_uri)
  provider_for(scheme).load(payload, options)
end