Class: Squidward::Command::Logs

Inherits:
Base
  • Object
show all
Defined in:
lib/squidward/commands/logs.rb

Overview

Handles the information related to the log being genereated by the application

Instance Method Summary collapse

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.expand_path(File.join(CONF_PATH, LOG_FILE))}"
end