voxpupuli/puppet_webhook

View on GitHub
config.ru

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

require './config/environment'
require 'sidekiq/web'

raise 'Migrations are pending. Run `rake db:migrate` to resolve the issue.' if ActiveRecord::Migrator.needs_migration?

map '/' do
  use AuthenticationController
  use Api::V1::R10K::EnvironmentController
  use Api::V1::R10K::ModuleController

  run ApplicationController
end

map '/sidekiq' do
  require './config/initializers/sidekiq'
  run Sidekiq::Web
end