xendeploy 0.12 → 0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/xendeploy.rb +1 -1
- data/lib/xendeploy/recipes/build.rb +1 -1
- data/lib/xendeploy/recipes/deploy.rb +4 -3
- data/lib/xendeploy/recipes/server.rb +5 -1
- metadata +1 -1
data/lib/xendeploy.rb
CHANGED
|
@@ -12,7 +12,7 @@ recipes = Dir[File.dirname(__FILE__) + "/recipes/*.rb"].collect { |recipe| File.
|
|
|
12
12
|
recipes.each do |recipe|
|
|
13
13
|
Capistrano::Configuration.instance.load recipe
|
|
14
14
|
|
|
15
|
-
namespace "
|
|
15
|
+
namespace "deploy:#{recipe}" do
|
|
16
16
|
desc "Check #{recipe.capitalize}"
|
|
17
17
|
task :check do
|
|
18
18
|
puts "checked #{recipe}"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
namespace :xen do
|
|
4
|
+
namespace :deploy do
|
|
5
5
|
|
|
6
6
|
task :default do
|
|
7
7
|
update
|
|
@@ -25,5 +25,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
end
|
|
28
|
-
|
|
28
|
+
end
|
|
29
|
+
|
|
29
30
|
end
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
namespace :xen do
|
|
3
4
|
namespace :server do
|
|
4
5
|
|
|
5
6
|
namespace :apache do
|
|
@@ -35,6 +36,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
35
36
|
end
|
|
36
37
|
|
|
37
38
|
namespace :mysql do
|
|
39
|
+
|
|
38
40
|
task :restart, :roles => db do
|
|
39
41
|
sudo "/etc/init.d/mysql restart"
|
|
40
42
|
end
|
|
@@ -46,8 +48,10 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
46
48
|
task :restore, :roles =>db do
|
|
47
49
|
run "mysql -u #{dbuser} -p < #{shared_path}/sql/#{dbname}-#{release_name}.sql"
|
|
48
50
|
end
|
|
51
|
+
|
|
49
52
|
end
|
|
50
53
|
|
|
51
54
|
end
|
|
52
55
|
end
|
|
56
|
+
|
|
53
57
|
end
|