MyBuilder\Cronos\Updater\CommandCronManipulator::replace PHP Method

replace() public method

public replace ( $contents )
    public function replace($contents)
    {
        $filePath = $this->fileSystem->createTempFile('cron', $contents);
        $this->processRunner->run($this->cronCommand . ' ' . $filePath);
        $this->fileSystem->removeFile($filePath);
    }