Module: Txgh
- Defined in:
- lib/txgh.rb,
lib/txgh/app.rb,
lib/txgh/utils.rb,
lib/txgh/config.rb,
lib/txgh/errors.rb,
lib/txgh/events.rb,
lib/txgh/version.rb,
lib/txgh/handlers.rb,
lib/txgh/tx_logger.rb,
lib/txgh/github_api.rb,
lib/txgh/github_repo.rb,
lib/txgh/tx_resource.rb,
lib/txgh/parse_config.rb,
lib/txgh/github_status.rb,
lib/txgh/transifex_api.rb,
lib/txgh/diff_calculator.rb,
lib/txgh/handlers/github.rb,
lib/txgh/category_support.rb,
lib/txgh/config/providers.rb,
lib/txgh/config/tx_config.rb,
lib/txgh/merge_calculator.rb,
lib/txgh/resource_updater.rb,
lib/txgh/response_helpers.rb,
lib/txgh/config/tx_manager.rb,
lib/txgh/handlers/response.rb,
lib/txgh/handlers/triggers.rb,
lib/txgh/resource_contents.rb,
lib/txgh/transifex_project.rb,
lib/txgh/config/config_pair.rb,
lib/txgh/config/key_manager.rb,
lib/txgh/handlers/transifex.rb,
lib/txgh/resource_committer.rb,
lib/txgh/tx_branch_resource.rb,
lib/txgh/github_request_auth.rb,
lib/txgh/resource_downloader.rb,
lib/txgh/transifex_request_auth.rb,
lib/txgh/config/provider_support.rb,
lib/txgh/empty_resource_contents.rb,
lib/txgh/handlers/github/handler.rb,
lib/txgh/config/provider_instance.rb,
lib/txgh/handlers/stream_response.rb,
lib/txgh/handlers/download_handler.rb,
lib/txgh/handlers/triggers/handler.rb,
lib/txgh/handlers/github/ping_handler.rb,
lib/txgh/handlers/github/push_handler.rb,
lib/txgh/handlers/tgz_stream_response.rb,
lib/txgh/handlers/zip_stream_response.rb,
lib/txgh/config/providers/git_provider.rb,
lib/txgh/config/providers/raw_provider.rb,
lib/txgh/config/providers/file_provider.rb,
lib/txgh/handlers/github/delete_handler.rb,
lib/txgh/handlers/triggers/pull_handler.rb,
lib/txgh/handlers/triggers/push_handler.rb,
lib/txgh/handlers/github/request_handler.rb,
lib/txgh/handlers/transifex/hook_handler.rb,
lib/txgh/handlers/transifex/request_handler.rb
Defined Under Namespace
Modules: CategorySupport, Config, Handlers, RespondWith, ResponseHelpers, Utils
Classes: Application, ConfigNotFoundError, DiffCalculator, EmptyResourceContents, Events, GitConfigNotFoundError, GithubApi, GithubRepo, GithubRequestAuth, GithubStatus, Hooks, InvalidProviderError, MergeCalculator, ParseConfig, ProjectConfigNotFoundError, RepoConfigNotFoundError, ResourceCommitter, ResourceContents, ResourceDownloader, ResourceUpdater, TransifexApi, TransifexApiError, TransifexNotFoundError, TransifexProject, TransifexRequestAuth, TransifexUnauthorizedError, Triggers, TxBranchResource, TxLogger, TxResource, TxghError, TxghInternalError
Constant Summary
collapse
- DEFAULT_ENV =
'development'
- VERSION =
'5.0.0'
Class Method Summary
collapse
Class Method Details
.env ⇒ Object
60
61
62
|
# File 'lib/txgh.rb', line 60
def env
ENV.fetch('TXGH_ENV', DEFAULT_ENV)
end
|
.events ⇒ Object
48
49
50
|
# File 'lib/txgh.rb', line 48
def events
@events ||= Events.new
end
|
.update_status_callback(options) ⇒ Object
52
53
54
55
56
57
58
|
# File 'lib/txgh.rb', line 52
def update_status_callback(options)
project = options.fetch(:project)
repo = options.fetch(:repo)
resource = options.fetch(:resource)
GithubStatus.new(project, repo, resource).update(options.fetch(:sha))
end
|