Sha256: 66922e412dfe067afd9e725d5c991e704fe51784cbbf944fc7733317c9a1c048
Contents?: true
Size: 735 Bytes
Versions: 2
Compression:
Stored size: 735 Bytes
Contents
require_dependency "overlay/application_controller" module Overlay class GithubController < ApplicationController def update render nothing: true Overlay.configuration.repositories.each do |repo_config| 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 "Enqueueing GithubJob for repo: #{repo_config[:repo]} and branch: #{repo_config[:branch] || 'master'}" SuckerPunch::Queue[:github_queue].async.perform repo_config end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
overlay-1.0.4 | app/controllers/overlay/github_controller.rb |
overlay-1.0.3 | app/controllers/overlay/github_controller.rb |