Class: GithubHookController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- GithubHookController
- Defined in:
- app/controllers/github_hook_controller.rb
Constant Summary collapse
- GIT_BIN =
Redmine::Configuration['scm_git_command'] || "git"
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/github_hook_controller.rb', line 8 def index if request.post? repositories = find_repositories repositories.each do |repository| # Fetch the changes from Github update_repository(repository) # Fetch the new changesets into Redmine repository.fetch_changesets end end render(:text => 'OK') end |
#welcome ⇒ Object
24 25 26 |
# File 'app/controllers/github_hook_controller.rb', line 24 def welcome # Render the default layout end |