public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Search Repo:
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
Removing lib/tasks/switchtower.rake, which is a leftover from previously.
francois (author)
Tue Mar 04 08:09:41 -0800 2008
commit  628cbde5cdced976670e81a55a71f8d25f123b2d
tree    454949a2b71b7260ab425ce8db8a7d634a3350dd
parent  249a13bc7536c7faa275bef1628d0dec831d6315
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
@@ -1,34 +1 @@
0
-# =============================================================================
0
-# A set of rake tasks for invoking the SwitchTower automation utility.
0
-# =============================================================================
0
-
0
-desc "Push the latest revision into production using the release manager"
0
-task :deploy do
0
- system "switchtower -vvvv -r config/deploy -a deploy"
0
-end
0
-
0
-desc "Rollback to the release before the current release in production"
0
-task :rollback do
0
- system "switchtower -vvvv -r config/deploy -a rollback"
0
-end
0
-
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
-end
0
-
0
-desc "Enumerate all available deployment tasks"
0
-task :show_deploy_tasks do
0
- system "switchtower -r config/deploy -a show_tasks"
0
-end
0
-
0
-desc "Execute a specific action using the release manager"
0
-task :remote_exec do
0
- unless ENV['ACTION']
0
- raise "Please specify an action (or comma separated list of actions) via the ACTION environment variable"
0
- end
0
-
0
- actions = ENV['ACTION'].split(",").map { |a| "-a #{a}" }.join(" ")
0
- system "switchtower -vvvv -r config/deploy #{actions}"
0
-end

Comments

    No one has commented yet.