aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/govuk_guix/revisions_controller.rb
blob: e9d64c74832217f60ccbc3012ca23ca4912a6c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class GovukGuix::RevisionsController < ApplicationController
  def show
    @revision = GovukGuix::Revision.find(params['id'])
  end

  def enqueue_fetch_revision
    revision = params.require('revision')

    GovukGuix::FetchRevisionJob.enqueue(revision)

    flash[:info] = "Fetching govuk-guix revision (#{revision})..."
    redirect_to setup_path
  end
end