DataSift\Storyplayer\ProvisioningLib\Provisioners\DsbuildProvisioner::writeDsbuildParamsShellFile PHP Method

writeDsbuildParamsShellFile() protected method

protected writeDsbuildParamsShellFile ( array $vars )
$vars array
    protected function writeDsbuildParamsShellFile($vars)
    {
        // what are we doing?
        $log = usingLog()->startAction("write dsbuildparams.sh");
        // what is the path to the file?
        $filename = "dsbuildparams.sh";
        // build the data to write
        $output = "";
        foreach ($vars as $name => $value) {
            $name = str_replace("-", "_", $name);
            $output .= strtoupper($name) . "='" . $value . "';" . PHP_EOL;
        }
        // write the data
        file_put_contents($filename, $output);
        // all done
        $log->endAction();
    }