Sha256: 5e12e5020b2ab01291f0db9866b5e590bdb5e2a5192d75cfe89d74c5178e703e

Contents?: true

Size: 739 Bytes

Versions: 15

Compression:

Stored size: 739 Bytes

Contents

module Shipit
  class ShipitController < ApplicationController
    layout 'shipit'

    helper GithubUrlHelper
    helper StacksHelper
    helper TasksHelper
    helper DeploysHelper
    helper ChunksHelper

    helper Shipit::Engine.routes.url_helpers
    include Shipit::Engine.routes.url_helpers

    before_action :ensure_required_settings

    include Shipit::Authentication

    # Respond to HTML by default
    respond_to :html

    # Prevent CSRF attacks by raising an exception.
    # For APIs, you may want to use :null_session instead.
    protect_from_forgery with: :exception

    private

    def ensure_required_settings
      return if Shipit.all_settings_present?

      render 'shipit/missing_settings'
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.30.0 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.29.0 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.28.1 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.28.0 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.27.1 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.27.0 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.26.0 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.25.1 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.25.0 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.24.0 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.23.1 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.23.0 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.22.0 app/controllers/shipit/shipit_controller.rb
shipit-engine-0.21.0 app/controllers/shipit/shipit_controller.rb