Class: Squidward::Command::Logs
- Defined in:
- lib/squidward/commands/logs.rb
Overview
Handles the information related to the log being genereated by the application
Instance Method Summary collapse
-
#index(args = nil) ⇒ Object
Echoes to the stdout the latest 25 lines of the log.
Methods inherited from Base
#configuration, #display, #logger, #store_configuration
Instance Method Details
#index(args = nil) ⇒ Object
Echoes to the stdout the latest 25 lines of the log
6 7 8 |
# File 'lib/squidward/commands/logs.rb', line 6 def index(args = nil) system "tail -n 25 #{File.(File.join(CONF_PATH, LOG_FILE))}" end |