Sha256: ea2b5129105ee812108de955ba9e8d30c4cfd19068190e56a7d8179e068066ee
Contents?: true
Size: 1008 Bytes
Versions: 2
Compression:
Stored size: 1008 Bytes
Contents
module Playmo module Recipes class GitRecipe < Playmo::Recipe def setup silently do Event.events.listen(:before_exit) do |event_data| remove_file '.gitignore' # TODO Add sphinx & dragonfly files to .gitignore create_file '.gitignore', <<-CONTENT.gsub(/^ {14}/, '') .DS_Store log/*.log tmp/**/* db/*.sqlite3 .idea/ public/uploads/* .sass-cache/ CONTENT in_root do git :init git :add => '.' git :commit => "-m 'Initial commit for #{application_name}'" end end end end end end end # Write down this recipe to our Cookbook if it's available require File.dirname(__FILE__) + '/setup_database_recipe' Playmo::Cookbook.instance.insert_after(Playmo::Recipes::SetupDatabaseRecipe, Playmo::Recipes::GitRecipe) if defined?(Playmo::Cookbook)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
playmo-0.0.18 | lib/playmo/recipes/git_recipe.rb |
playmo-0.0.17 | lib/playmo/recipes/git_recipe.rb |