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

Add Blueprint.prototype.insertIntoFile. #1857

Merged
merged 1 commit into from
Sep 3, 2014

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Sep 3, 2014

  • Inserts the provided content into a file (always at the end right now).
  • Only inserts once unless force option is truthy.

Inspired by Thor#insert_into_file.

Future additons will include more options:

  • before - Insert before given string/regex.
  • after - Insert after a given string/regex.

@rwjblue
Copy link
Member Author

rwjblue commented Sep 3, 2014

@jgwhite - I think you mentioned this somewhere in your original Blueprint PR...

@jgwhite
Copy link
Contributor

jgwhite commented Sep 3, 2014

Yup, this is exactly what I had in mind. Nice :shipit:

* Inserts the provided content into a file (always at the end right now).
* Only inserts once unless `force` option is truthy.
rwjblue added a commit that referenced this pull request Sep 3, 2014
Add Blueprint.prototype.insertIntoFile.
@rwjblue rwjblue merged commit ffcd87b into ember-cli:master Sep 3, 2014
@rwjblue rwjblue deleted the add-insert-into-file branch September 3, 2014 12:26
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.

3 participants