Sha256: 679b18f39c15f0b96e3d374dc98b24bd827573443e05e3b80a68644f021fe7cb
Contents?: true
Size: 925 Bytes
Versions: 1
Compression:
Stored size: 925 Bytes
Contents
require_dependency "overlay/application_controller" module Overlay class GithubController < ApplicationController def update render nothing: true logger.info "Received update post for repo: #{params[:repository]} and ref: #{params[:ref]}" Overlay.configuration.repositories.each do |repo_config| logger.info "Processing config for repo: #{repo_config[:repo]} and branch: #{repo_config[:branch] || 'master'}" next unless repo_config.class == GithubRepo branch = repo_config[:branch] || 'master' if (params[:repository] && params[:ref]) if (params[:repository][:name] == repo_config[:repo]) && (params[:ref] == "refs/heads/#{branch}") logger.info "Processing overlay for repo: #{repo_config[:repo]} and branch: #{repo_config[:branch] || 'master'}" Overlay::Github.process_overlays end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
overlay-1.0.2 | app/controllers/overlay/github_controller.rb |