Sha256: 211cc2cb934cd829ba293df0a44050f61ef6c4605b44a726cc911e0bc69ea9f9
Contents?: true
Size: 609 Bytes
Versions: 2
Compression:
Stored size: 609 Bytes
Contents
require_dependency "overlay/application_controller" module Overlay class GithubController < ApplicationController def update Overlay.configuration.repositories.each do |repo_config| next unless repo_config.class == GithubRepo branch = repo_config[:branch] || 'master' if (params[:repository] && params[:webhook]) if (params[:repository][:name] == repo_config[:repo]) && (params[:webhook][:ref] == "refs/heads/#{branch}") Overlay::Github.process_overlays end end end render :inline => github_update_url end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
overlay-0.0.5 | app/controllers/overlay/github_controller.rb |
overlay-0.0.4 | app/controllers/overlay/github_controller.rb |