Sha256: 6e85ca2ef4d88811181084786159b107e77d139e1d6060227699a9039698cb85
Contents?: true
Size: 944 Bytes
Versions: 2
Compression:
Stored size: 944 Bytes
Contents
namespace :deploy do namespace :migrations do desc <<-DESC Migrates database using the cakephp/migrations plugin. This is similar to running: bin/cake Migrations.migrations migrate For help: cap cakephp:help[migrations] DESC task :migrate do invoke "cakephp:migrations", "migrate" end desc <<-DESC Rollback database using the cakephp/migrations plugin This is similar to running: bin/cake Migrations.migrations rollback For help: cap cakephp:help[migrations] DESC task :rollback do invoke "cakephp:migrations", "rollback" end end end namespace :cakephp do task :migrations, :command_name do |t, args| # ask only runs if argument is not provided ask(:cmd, "list") command = args[:command_name] || fetch(:cmd) invoke "cakephp:cake", "Migrations.migrations", command, *args.extras end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capcake-3.0.2 | lib/capistrano/tasks/migrations.rake |
capcake-3.0.1 | lib/capistrano/tasks/migrations.rake |