Rocketeer\Services\Storages\ServerStorage::saveContents PHP Method

saveContents() protected method

Save the contents of the file.
protected saveContents ( array $contents )
$contents array
    protected function saveContents($contents)
    {
        if ($this->getOption('pretend')) {
            return;
        }
        $file = $this->getFilepath();
        $this->bash->putFile($file, json_encode($contents));
    }