Sha256: 68411889ada000307a1f56d4363def8367dcfafa7a1b337335c6314de2d13a39

Contents?: true

Size: 478 Bytes

Versions: 10

Compression:

Stored size: 478 Bytes

Contents

module Pah
  module Templates
    class Database < Pah::Template
      def call
        copy_static_file 'config/database.yml'
        gsub_file 'config/database.yml', /PROJECT/, Pah.configuration.app_name
        git add: 'config/database.yml'
        git_commit 'Add config/database.yml.'

        run 'bundle exec rake db:create db:migrate db:test:clone'

        git add: 'db/schema.rb'
        git_commit 'Create database, adding db/schema.rb.'
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pah-0.0.26 lib/pah/templates/database.rb
pah-0.0.25 lib/pah/templates/database.rb
pah-0.0.24 lib/pah/templates/database.rb
pah-0.0.23 lib/pah/templates/database.rb
pah-0.0.22 lib/pah/templates/database.rb
pah-0.0.21 lib/pah/templates/database.rb
pah-0.0.20 lib/pah/templates/database.rb
pah-0.0.19 lib/pah/templates/database.rb
pah-0.0.17 lib/pah/templates/database.rb
pah-0.0.16 lib/pah/templates/database.rb