Sha256: 8fe472dc9260a0f0d9b6b95b64fa0601186d615e883c813e17ec4aa81cbc24f1
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 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}") 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.1 | app/controllers/overlay/github_controller.rb |