Class: Peephole::LogfilesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Peephole::LogfilesController
- Defined in:
- app/controllers/peephole/logfiles_controller.rb
Instance Method Summary collapse
Instance Method Details
#download ⇒ Object
12 13 14 |
# File 'app/controllers/peephole/logfiles_controller.rb', line 12 def download send_file @logfile.path end |
#raw ⇒ Object
16 17 18 |
# File 'app/controllers/peephole/logfiles_controller.rb', line 16 def raw @raw, @eof = @logfile.bytes(@page) end |
#show ⇒ Object
8 9 10 |
# File 'app/controllers/peephole/logfiles_controller.rb', line 8 def show @loglines, @eof = @logfile.lines(@page) end |