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

Version Path
shipit-engine-0.31.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.30.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.29.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.28.1 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.28.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.27.1 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.27.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.26.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.25.1 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.25.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.24.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.23.1 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.23.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.22.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.21.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.20.1 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.20.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.19.0 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.18.1 app/controllers/shipit/api/ccmenu_controller.rb
shipit-engine-0.18.0 app/controllers/shipit/api/ccmenu_controller.rb