Class: Peephole::LogfilesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/peephole/logfiles_controller.rb

Instance Method Summary collapse

Instance Method Details

#downloadObject



12
13
14
# File 'app/controllers/peephole/logfiles_controller.rb', line 12

def download
  send_file @logfile.path
end

#showObject



7
8
9
10
# File 'app/controllers/peephole/logfiles_controller.rb', line 7

def show
  @page = params[:page].to_i.nonzero? || 1
  @loglines, @eof = @logfile.loglines(@page)
end