xendeploy 0.7 → 0.8
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/recipes/deploy.rb +3 -4
- data/lib/xendeploy/recipes/server.rb +51 -51
- data/lib/xendeploy.rb +6 -3
- metadata +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
2
|
-
|
2
|
+
|
3
3
|
namespace :xen do
|
4
4
|
namepace :deploy do
|
5
5
|
|
@@ -11,7 +11,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
11
11
|
symlink
|
12
12
|
restart
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
desc "Symlinks the current release to the public directory"
|
16
16
|
task :makepublic, :roles => :app do
|
17
17
|
run "rm -f #{location}/public && ln -nfs #{deploy_to}/current #{location}/public"
|
@@ -23,8 +23,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
23
23
|
run "ln -nfs #{deploy_to}/#{shared_dir}/uploads #{deploy_to}/current/wp-content/uploads"
|
24
24
|
end
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
end
|
28
28
|
end
|
29
|
-
|
30
29
|
end
|
@@ -1,53 +1,53 @@
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
2
|
-
namespace :xen do
|
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
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
end
|
2
|
+
# namespace :xen do
|
3
|
+
# namespace :server do
|
4
|
+
#
|
5
|
+
# namespace :apache do
|
6
|
+
# task :restart, :roles => :web do
|
7
|
+
# sudo "/etc/init.d/apache restart"
|
8
|
+
# end
|
9
|
+
# end
|
10
|
+
#
|
11
|
+
# namespace :nginx do
|
12
|
+
# task :restart, :roles => :web do
|
13
|
+
# sudo "/etc/init.d/nginx restart"
|
14
|
+
# end
|
15
|
+
# end
|
16
|
+
#
|
17
|
+
# namespace :php do
|
18
|
+
# task :restart, :roles => :cache do
|
19
|
+
# sudo "/etc/init.d/php-fcgi restart"
|
20
|
+
# end
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# namespace :cache do
|
24
|
+
# namespace :squid do
|
25
|
+
# task :restart, :roles => :cache do
|
26
|
+
# sudo "/etc/init.d/squid restart"
|
27
|
+
# end
|
28
|
+
# end
|
29
|
+
#
|
30
|
+
# namespace :memcached do
|
31
|
+
# task :restart, :roles => :cache do
|
32
|
+
# sudo "/etc/init.d/memcached restart"
|
33
|
+
# end
|
34
|
+
# end
|
35
|
+
# end
|
36
|
+
#
|
37
|
+
# namespace :mysql do
|
38
|
+
# task :restart, :roles => db do
|
39
|
+
# sudo "/etc/init.d/mysql restart"
|
40
|
+
# end
|
41
|
+
#
|
42
|
+
# task :backup, :roles => db do
|
43
|
+
# run "mysqldump --add-drop-database #{dbname} > #{shared_path}/sql/#{dbname}-#{release_name}.sql"
|
44
|
+
# end
|
45
|
+
#
|
46
|
+
# task :restore, :roles =>db do
|
47
|
+
# run "mysql -u #{dbuser} -p < #{shared_path}/sql/#{dbname}-#{release_name}.sql"
|
48
|
+
# end
|
49
|
+
# end
|
50
|
+
#
|
51
|
+
# end
|
52
|
+
# end
|
53
53
|
end
|
data/lib/xendeploy.rb
CHANGED
@@ -3,6 +3,9 @@ unless Capistrano::Configuration.respond_to?(:instance)
|
|
3
3
|
end
|
4
4
|
|
5
5
|
require "#{File.dirname(__FILE__)}/xendeploy/deprec_extensions"
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
|
7
|
+
# Load recipes.
|
8
|
+
recipes = Dir[File.dirname(__FILE__) + "/recipes/*.rb"].collect { |recipe| File.expand_path(recipe) }
|
9
|
+
recipes.each do |recipe|
|
10
|
+
Capistrano::Configuration.instance.load recipe
|
11
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xendeploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "0.
|
4
|
+
version: "0.8"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Marden
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-03 00:00:00 -06:00
|
13
13
|
default_executable: xenify
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|