protected function copyGitIgnore($source)
    {
        $source = CLI_ROOT . '/resources/' . $source;
        $gitRoot = $this->gitHelper->getRoot($this->appRoot);
        if (!$gitRoot) {
            return;
        }
        $appGitIgnore = $this->appRoot . '/.gitignore';
        if (!file_exists($appGitIgnore) && !file_exists($gitRoot . '/.gitignore')) {
            $this->stdErr->writeln("Creating a .gitignore file");
            copy($source, $appGitIgnore);
        }
    }
protected function copyGitIgnore($source)
    {
        $source = CLI_ROOT . '/resources/' . $source;
        $gitRoot = $this->gitHelper->getRoot($this->appRoot);
        if (!$gitRoot) {
            return;
        }
        $appGitIgnore = $this->appRoot . '/.gitignore';
        if (!file_exists($appGitIgnore) && !file_exists($gitRoot . '/.gitignore')) {
            $this->stdErr->writeln("Creating a .gitignore file");
            copy($source, $appGitIgnore);
        }
    }
protected function copyGitIgnore ( $ source ) { $ source = CLI_ROOT . '/resources/' . $ source ; $ gitRoot = $ this -> gitHelper -> getRoot ( $ this -> appRoot ) ; if ( ! $ gitRoot ) { return ; } $ appGitIgnore = $ this -> appRoot . '/.gitignore' ; if ( ! file_exists ( $ appGitIgnore ) && ! file_exists ( $ gitRoot . '/.gitignore' ) ) { $ this -> stdErr -> writeln ( "Creating a .gitignore file" ) ; copy ( $ source , $ appGitIgnore ) ; } }
Create a default .gitignore file for the app.

@param string $source The path to a default .gitignore file, relative to
the 'resources' directory.
Create a default . gitignore file for the app .