Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bref init: Automatically git add bref.php serverless.yml + gitignore /.bref/ #69

Merged
merged 2 commits into from
Oct 7, 2018

Conversation

vdechenaux
Copy link
Contributor

496a990 is a little extra, related to #68 🙊

if (getenv('AWS_ACCESS_KEY_ID') === false || getenv('AWS_SECRET_ACCESS_KEY') === false) {
// Credentials are not configured with environment variables, check aws cli
if ($exeFinder->find('aws') !== null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed, Process will exits with status 1 if not found. It simplifies the block :)

* - add /.bref/ to .gitignore
*/
if ((new Process('git rev-parse --is-inside-work-tree'))->run() === 0) {
(new Process('git add bref.php serverless.yml'))->run();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could also be combined into a single process command, with &&

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I think it's harder to read/understand

@mnapoli mnapoli merged commit 3e538c0 into brefphp:master Oct 7, 2018
@mnapoli
Copy link
Member

mnapoli commented Oct 7, 2018

This is perfect thanks!

@vdechenaux vdechenaux deleted the bref-init-git-add-and-ignore branch October 7, 2018 21:56
jvis pushed a commit to jvis/bref that referenced this pull request Nov 1, 2018
…gnore

Bref init: Automatically `git add bref.php serverless.yml` + gitignore /.bref/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants