crazycode-cap-recipes 0.4.11 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 4
4
- :patch: 11
4
+ :patch: 12
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.11"
8
+ s.version = "0.4.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["crazycode"]
@@ -24,7 +24,8 @@ Capistrano::Configuration.instance(true).load do |configuration|
24
24
  end
25
25
 
26
26
  _cset :war_config, Array.new
27
-
27
+ _cset :war_name, ""
28
+ _cset :war_path, "not set.war"
28
29
 
29
30
  set :local_git_dir do
30
31
  "/tmp/localgit_#{application}"
@@ -64,7 +65,7 @@ Capistrano::Configuration.instance(true).load do |configuration|
64
65
  system "cd #{local_gitrepo}; git checkout #{branch}; git fetch; git merge origin/#{branch};"
65
66
 
66
67
 
67
- if defined? war_name
68
+ unless war_name.empty?
68
69
  puts "name=#{war_name}, war=#{war_path}"
69
70
  system update_repository_local_command(war_name, war_path)
70
71
  else
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 11
9
- version: 0.4.11
8
+ - 12
9
+ version: 0.4.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - crazycode