Class CommandRegistry
In: lib/fastcst/command.rb
Parent: Object

A Singleton class that manages all of the available commands and handles running them.

Methods

Included Modules

Singleton

Public Instance methods

Builds a list of possible commands from the Command derivates list

Runs the args against the first argument as the command name. If it has any errors it returns a false, otherwise it return true.

Runs the command like normal, but redirects $stdout and $stderr to the requested log file (which should be a file like object opened by you). It also marks the start and end times in the log file.

[Validate]