Class: Recipes::Git
- Inherits:
-
Rails::AppBuilder
- Object
- Rails::AppBuilder
- Recipes::Git
- Defined in:
- lib/potassium/recipes/git.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/potassium/recipes/git.rb', line 2 def create git :init after(:database_creation) do append_to_file '.gitignore', ".env\n" append_to_file '.gitignore', ".powder\n" append_to_file '.gitignore', "vendor/assets/bower_components\n" git add: "." git commit: %{ -m 'Initial commit' } end end |