Ruby Assignment

Due: Sunday December 9, 2012, at 6pm via ANGEL

Your systems administrator wants to replace the server hard drives with fast, shiny SSDs. Unfortunately, SSDs are not as reliable long term for a very large number of writes.

Because of this, the sysadmin wants to know what files are changed the most so they may be moved to a conventional hard drive. You will write a ruby script that will poll the files for changes and record the frequency at with they are being altered.

Requirements

·         This implementation may accept any given path, but this is not required.

Suggestions

o    Filename

o    DateTime monitoring began

o    Number of changes

o    DateTime of last change

o    If this check errors from the database, create a new entry for the file.

o    bool CheckLastModify(filename, modifytime)

o    void ModifyFile(filename)