crazycode-cap-recipes 0.4.10 → 0.4.11

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/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 4
4
- :patch: 10
4
+ :patch: 11
5
5
  :build:
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{crazycode-cap-recipes}
8
- s.version = "0.4.10"
8
+ s.version = "0.4.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["crazycode"]
@@ -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])
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 10
9
- version: 0.4.10
8
+ - 11
9
+ version: 0.4.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - crazycode