Sha256: c3c429abfe922678f9b3087d89d0be0381f7aa77035847ac2271f7f27d3200e4
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
module Fae class DeployController < ApplicationController before_action :admin_only include Fae::ApplicationHelper def index raise 'Fae.netlify configs are missing.' unless netlify_enabled? @deploy_hooks = DeployHook.all end def deploys_list render json: Fae::NetlifyApi.new().get_deploys end def deploy_site if Fae::NetlifyApi.new().run_deploy(params['deploy_hook_type'], current_user) return render json: { success: true } end render json: {success: false} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fae-rails-3.0.0 | app/controllers/fae/deploy_controller.rb |
fae-rails-2.2.0 | app/controllers/fae/deploy_controller.rb |