Class: Bagboy::PagesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/bagboy/pages_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#initialize

Constructor Details

This class inherits a constructor from Bagboy::ApplicationController

Instance Method Details

#indexObject



6
7
8
# File 'app/controllers/bagboy/pages_controller.rb', line 6

def index
  render :index
end

#updateObject



10
11
12
13
14
15
16
17
# File 'app/controllers/bagboy/pages_controller.rb', line 10

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