DataSift\Storyplayer\HostLib\VagrantVms::runCommandAgainstHostManager PHP Method

runCommandAgainstHostManager() public method

public runCommandAgainstHostManager ( string $baseFolder, string $command ) : CommandResult
$baseFolder string
$command string
return DataSift\Storyplayer\CommandLib\CommandResult
    public function runCommandAgainstHostManager($baseFolder, $command)
    {
        // what are we doing?
        $log = usingLog()->startAction("run vagrant command '{$command}'");
        // build the command
        $fullCommand = "cd '{$baseFolder}' && {$command} 2>&1";
        // run the command
        $commandRunner = new CommandRunner();
        $result = $commandRunner->runSilently($fullCommand);
        // all done
        $log->endAction("return code was '{$result->returnCode}'");
        return $result;
    }