ManageGitIgnore
class ManageGitIgnore (View source)
| internal |
Manage the .gitignore file.
Properties
| protected IOInterface | $io | Composer's I/O service. |
|
| protected string | $dir | The directory where the project is located. |
Methods
__construct(IOInterface $io, string $dir)
ManageGitIgnore constructor.
bool
managementOfGitIgnoreEnabled(ScaffoldOptions $options)
Determines whether we should manage gitignore files.
addToGitIgnore(string $dir, array $entries)
Adds a set of entries to the specified .gitignore file.
Details
__construct(IOInterface $io, string $dir)
ManageGitIgnore constructor.
manageIgnored(array $files, ScaffoldOptions $options)
Manages gitignore files.
protected bool
managementOfGitIgnoreEnabled(ScaffoldOptions $options)
Determines whether we should manage gitignore files.
protected
addToGitIgnore(string $dir, array $entries)
Adds a set of entries to the specified .gitignore file.