Sha256: 06eb7ded25e7439fa609f94d8329f47adeaaed25b5902ca5be9adeebc6d3c17e
Contents?: true
Size: 886 Bytes
Versions: 4
Compression:
Stored size: 886 Bytes
Contents
require 'deployml/frameworks/rails' module DeploYML module Frameworks # # Provides methods for deploying Rails 3 projects. # module Rails3 include Rails # # Migrates the database using the `db:autoupgrade` if # [DataMapper](http://datamapper.org) is being used, or the typical # `db:migrate` task. # # @param [LocalShell, RemoteShell] shell # The shell to execute commands in. # def migrate(shell) case @orm when :datamapper shell.status "Running DataMapper auto-upgrades ..." shell.run 'rake', 'db:autoupgrade', "RAILS_ENV=#{@environment}" else shell.status "Running ActiveRecord migrations ..." shell.run 'rake', 'db:migrate', "RAILS_ENV=#{@environment}" end shell.status "Database migrated." end end end end
Version data entries
4 entries across 4 versions & 1 rubygems