0
-# =============================================================================
0
-# A set of rake tasks for invoking the SwitchTower automation utility.
0
-# =============================================================================
0
-desc "Push the latest revision into production using the release manager"
0
- system "switchtower -vvvv -r config/deploy -a deploy"
0
-desc "Rollback to the release before the current release in production"
0
- system "switchtower -vvvv -r config/deploy -a rollback"
0
-desc "Describe the differences between HEAD and the last production release"
0
-task :diff_from_last_deploy do
0
- system "switchtower -vvvv -r config/deploy -a diff_from_last_deploy"
0
-desc "Enumerate all available deployment tasks"
0
-task :show_deploy_tasks do
0
- system "switchtower -r config/deploy -a show_tasks"
0
-desc "Execute a specific action using the release manager"
0
- raise "Please specify an action (or comma separated list of actions) via the ACTION environment variable"
0
- actions = ENV['ACTION'].split(",").map { |a| "-a #{a}" }.join(" ")
0
- system "switchtower -vvvv -r config/deploy #{actions}"
Comments
No one has commented yet.