xendeploy 0.13 → 0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xendeploy.rb +2 -14
- metadata +1 -1
data/lib/xendeploy.rb
CHANGED
@@ -1,21 +1,9 @@
|
|
1
1
|
require 'capistrano'
|
2
|
-
#
|
2
|
+
#require 'deprec'
|
3
3
|
|
4
4
|
unless Capistrano::Configuration.respond_to?(:instance)
|
5
5
|
abort "xendeploy requires Capistrano 2"
|
6
6
|
end
|
7
7
|
|
8
8
|
require "#{File.dirname(__FILE__)}/xendeploy/deprec_extensions"
|
9
|
-
|
10
|
-
# Load recipes.
|
11
|
-
recipes = Dir[File.dirname(__FILE__) + "/recipes/*.rb"].collect { |recipe| File.expand_path(recipe) }
|
12
|
-
recipes.each do |recipe|
|
13
|
-
Capistrano::Configuration.instance.load recipe
|
14
|
-
|
15
|
-
namespace "deploy:#{recipe}" do
|
16
|
-
desc "Check #{recipe.capitalize}"
|
17
|
-
task :check do
|
18
|
-
puts "checked #{recipe}"
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
9
|
+
Capistrano::Configuration.instance.load File.dirname(__FILE__) + "/recipes/deploy"
|