crazycode-cap-recipes 0.4.10 → 0.4.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/crazycode-cap-recipes.gemspec +1 -1
- data/lib/cap_recipes/tasks/gitdeploy/setup.rb +3 -3
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -60,9 +60,6 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
60
60
|
raise "NO tag. pls use -s tag=xxx set tag_name"
|
61
61
|
end
|
62
62
|
|
63
|
-
if war_config.nil? or war_config.size == 0 or !defined? war_name
|
64
|
-
raise 'NO war_config'
|
65
|
-
end
|
66
63
|
|
67
64
|
system "cd #{local_gitrepo}; git checkout #{branch}; git fetch; git merge origin/#{branch};"
|
68
65
|
|
@@ -71,6 +68,9 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
71
68
|
puts "name=#{war_name}, war=#{war_path}"
|
72
69
|
system update_repository_local_command(war_name, war_path)
|
73
70
|
else
|
71
|
+
if war_config.nil? or war_config.size == 0
|
72
|
+
raise 'NO war_config'
|
73
|
+
end
|
74
74
|
war_config.each do |config|
|
75
75
|
puts "name=#{config[:name]}, war=#{config[:war]}"
|
76
76
|
system update_repository_local_command(config[:name], config[:war])
|