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

#rawObject



16
17
18
# File 'app/controllers/peephole/logfiles_controller.rb', line 16

def raw
  @raw, @eof = @logfile.bytes(@page)
end

#showObject



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

def show
  @loglines, @eof = @logfile.lines(@page)
end