laserlemon / figaro

Simple Rails app configuration
MIT License
3.76k stars 288 forks source link

.gitignore file does not repeat itself #262

Closed JStans12 closed 7 years ago

JStans12 commented 7 years ago

The .gitignore file will not be appened to if "/#{options[:path]}" is already present.

Some people may delete the comment "# Ignore application configuration" from .gitignore. Then running bundle exec figaro install would previously append both lines:

# Ignore application configuration
/#{options[:path]}

Now it will check to see if "/#{options[:path]}" is already present and only append if it is not.

GIF: http://giphy.com/gifs/fight-club-work-edward-norton-YAy9NNu16pYYg