Ruby methods for executing system commands