Threesuns

Email the Instructor

Contact

All Semesters

Semesters

All Courses

Courses

2017Fall

08.22.16 - 12.18.16

Ruby

CSYS2853

Tuesday Thursday
02:30 PM - 03:50 PM

Restart Monitor

Lab06

Objective: Practice using Ruby objects and regular expressions

pastdue

Submit Your Solution

Lab06

Request a Copy of your Solution

Lab06

Requirements

Class created10 pts
Log file can be specified10 pts
Log file is searched10 pts
Restarts are found20 pts
Restarts can be displayed10 pts
Restarts shown are only the date and time of the restart20 pts
Duplicate restarts aren't shown10 pts
Searching and showing restarts are decoupled10 pts
Total100 pts

Instructions

Create a class called RestartMonitor that can read from the attached log file and report the dates and times that system restarts occurred.

Your RestartMonitor class should have the ability to work with any specified log file name, it should be able to search for system restarts and report on those restarts independently (i.e. searching for and showing the restarts do not have to happen at the same time), and duplicate restarts should not be shown.

Restarts can be identified in the log file by the word "restarting" that will occur in those lines.

Extras