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

Provide safe ability to modify files on disk #51

Merged
merged 2 commits into from
Aug 24, 2018

Conversation

schneems
Copy link
Contributor

@schneems schneems commented Aug 24, 2018

It’s common that someone might want have a “blank” template that then gets modified for each test.

For example you could use this to add a file to the app:

app = Hatchet::Runner.new("default_ruby”, before_deploy: -> { `echo "gem ‘rake’" >> Gemfile && bundle install` }

If this block changes the git directory the contents will automatically be saved as a new git commit.

It’s common that someone might want have a “blank” template that then gets modified for each test.

For example you could use this to add a file to the app:

```
app = Hatchet::Runner.new("default_ruby”, before_deploy ->() { `echo gem ‘rake’ >> Gemfile && bundle install` }
```

If this block changes the git directory the contents will automatically be saved as a new git commit.
@schneems schneems merged commit 0b6c0cb into master Aug 24, 2018
@edmorley edmorley deleted the schneems/before_deploy branch August 27, 2020 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants