JonathanTorres\Construct\Construct::gitattributes PHP Method

gitattributes() protected method

Generate gitattributes file.
protected gitattributes ( ) : void
return void
    protected function gitattributes()
    {
        $this->exportIgnores[] = '.gitattributes';
        sort($this->exportIgnores);
        $content = $this->file->get(__DIR__ . '/stubs/gitattributes.stub');
        foreach ($this->exportIgnores as $ignore) {
            $content .= "\n" . $ignore . ' export-ignore';
        }
        $content .= "\n";
        $this->file->put($this->projectLower . '/' . '.gitattributes', $content);
    }