Sha256: 8c34da0a184ebda86594dafac5d8578a0e89608dd4b38da79810468b8982bc26

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 Bytes

Contents

require_dependency "bagboy/application_controller"

module Bagboy
  class PagesController < ApplicationController

    def index
      render :index
    end

    def update
      if @scm.pull
        flash = { success: 'You have successfully updated your chef-repo' }
      else
        flash = { error: 'Something went wrong' }
      end
      redirect_to request.referer, flash: flash
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bagboy-0.0.1 app/controllers/bagboy/pages_controller.rb