Sha256: 67b9c9a873f511294b5962c97eac0a885abb8fbcdb9ecc7ea52b132c8751a20a
Contents?: true
Size: 773 Bytes
Versions: 21
Compression:
Stored size: 773 Bytes
Contents
module Shipit module Api class CCMenuController < BaseController require_permission :read, :stack class NoDeploy def id 0 end def ended_at Time.now.utc end def running? false end end def show latest_deploy = stack.deploys_and_rollbacks.last || NoDeploy.new render 'shipit/ccmenu/project.xml.builder', formats: [:xml], locals: {stack: stack, deploy: latest_deploy} end private def stack @stack ||= Stack.from_param!(params[:stack_id]) end def authenticate_api_client @current_api_client = ApiClient.authenticate(params[:token]) super unless @current_api_client end end end end
Version data entries
21 entries across 21 versions & 1 rubygems