Sha256: 707d934aa0ab35d1fee11499d8a198e1f8e0a02126bf567fa442e7f9bf0df0f1
Contents?: true
Size: 731 Bytes
Versions: 7
Compression:
Stored size: 731 Bytes
Contents
module Playmo module Recipes class SetupDatabaseRecipe < Playmo::Recipe source_root File.expand_path('../templates/setup_database_recipe', __FILE__) def setup silently do Event.events.listen(:after_install) do |event_data| run "cd #{application_name} && rake db:create" run "cd #{application_name} && rake db:migrate" run "cd #{application_name} && rake db:seed" end end end end end end # Write down this recipe to our Cookbook if it's available require File.dirname(__FILE__) + '/rvm_recipe' Playmo::Cookbook.instance.insert_after(Playmo::Recipes::RvmRecipe, Playmo::Recipes::SetupDatabaseRecipe) if defined?(Playmo::Cookbook)
Version data entries
7 entries across 7 versions & 1 rubygems