Skip to content
Snippets Groups Projects
Commit 7a6968a4 authored by jurgenhaas's avatar jurgenhaas
Browse files

Git ignore .ahoy.yml

Add readme
parent 6071eb9f
No related branches found
No related tags found
No related merge requests found
# Ahoy support for Drupal projects
This is a composer plugin which prepares your local development environment for Ahoy using the framework from [Ahoy-CLI](https://github.com/ahoy-cli/ahoy).
If you [installed Ahoy-CLI](https://github.com/ahoy-cli/ahoy#installation) globally once you can use it in Drupal projects without any further configuration.
......@@ -85,6 +85,17 @@ class Handler {
}
$file = getcwd() . '/.ahoy.yml';
file_put_contents($file, $rendered = Yaml::dump($ahoy, 9, 2));
$this->git('ignore ' . '.ahoy.yml');
}
/**
* Wrapper for git command in the root directory.
*
* @param string $command
* Git command name, arguments and/or options.
*/
protected function git($command) {
passthru(escapeshellcmd('git -c "user.email=d8-project@lakedrops.com" ' . $command));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment