src/Rocketeer/Services/Ignition/RocketeerIgniter.php
public function exportDotenv(array $credentials)
    {
        // Build dotenv file
        $dotenv = '';
        foreach ($credentials as $credential => $value) {
            $value = str_replace('"', '\\"', $value);
            $dotenv .= sprintf('%s="%s"', $credential, $value);
            $dotenv .= PHP_EOL;
        }

        // Write to disk
        $this->files->append($this->paths->getDotenvPath(), $dotenv);
    }
public function exportDotenv(array $credentials)
    {
        // Build dotenv file
        $dotenv = '';
        foreach ($credentials as $credential => $value) {
            $value = str_replace('"', '\\"', $value);
            $dotenv .= sprintf('%s="%s"', $credential, $value);
            $dotenv .= PHP_EOL;
        }

        // Write to disk
        $this->files->append($this->paths->getDotenvPath(), $dotenv);
    }
public function exportDotenv ( array $ credentials ) { // Build dotenv file $ dotenv = '' ; foreach ( $ credentials as $ credential => $ value ) { $ value = str_replace ( '"' , '\\"' , $ value ) ; $ dotenv .= sprintf ( '%s="%s"' , $ credential , $ value ) ; $ dotenv .= PHP_EOL ; } // Write to disk $ this -> files -> append ( $ this -> paths -> getDotenvPath ( ) , $ dotenv ) ; }
Export credentials to a dotenv file.

@param array $credentials
Export credentials to a dotenv file .