capitomcat 1.0.1 → 1.1.0
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.
- checksums.yaml +8 -8
- data/README.md +24 -0
- data/capitomcat.gemspec +2 -2
- data/examples/native/lib/native/application.rb +2 -2
- data/lib/capitomcat/tasks/deploy.cap +2 -4
- data/lib/capitomcat/version.rb +1 -1
- metadata +4 -10
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YTQ2ZTRhNGVmMTMxMGRhZjNiNjcyOWU3MGU3YWJlOGFjYjAyYWQzMQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZThmODg3M2E4YzBhNTIzMjQ3OWNjNWVmNTBiOTIyNGEyOGY5YzA0Mg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZDFkM2Q5NGMxYTRlOTk0NTlkZDc5ZTNmMmNiNDhlNjk4MTEyZGQ0NjU4ZDYy
|
|
10
|
+
YjM2ZGNjMzBkMjBlZjQxNzU4YWUzZTJhNzliNTgyOGIyODA0MjVkOGYxYWFh
|
|
11
|
+
YzVhZmJiYmUwYjhlNWFkMjI2YjMyNzA1ZGZiOWU5NGYwZmE5NzY=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NWY5Y2U4NTA4MGY4YjhiMGNiYzVkMWU3NDE0OGRkNWUxMzU5MDcwMjRmYTA3
|
|
14
|
+
NjlmYzM1OTQwYTRkOWExNzU0NjI5YTU4ZmQ3MzMxNTFkMjgxOTg4NWI1Mzlh
|
|
15
|
+
ZjhiMDUzNDljNDFjYThmMDkwMzI4ZjA5YzkxOTYxMzlhZGNiYzE=
|
data/README.md
CHANGED
|
@@ -4,6 +4,30 @@
|
|
|
4
4
|
Capitomcat is library for creating Capistrano Tomcat recipe.
|
|
5
5
|
Capitomcat includes basic tasks for Tomcat deployment. You can create easily your own Capistrano 3 recipe for Tomcat with Capitomcat.
|
|
6
6
|
|
|
7
|
+
## Changes
|
|
8
|
+
[1.1.0]: https://github.com/sunggun-yu/capitomcat/releases/tag/v1.1.0
|
|
9
|
+
[1.0.1]: https://github.com/sunggun-yu/capitomcat/releases/tag/v1.0.1
|
|
10
|
+
[1.0.0]: https://github.com/sunggun-yu/capitomcat/releases/tag/v1.0.0
|
|
11
|
+
[0.0.3]: https://github.com/sunggun-yu/capitomcat/releases/tag/v0.0.3
|
|
12
|
+
### [v1.1.0][1.1.0]
|
|
13
|
+
* Update Capistrano dependency to v3.1.0
|
|
14
|
+
* Raise an exception instead of using exit command when local war file or context.xml template file does not exist.
|
|
15
|
+
* The example for 'native' has changed because Capistrano do not allow load_imports in Capistrano class since they update to v3.1.0
|
|
16
|
+
|
|
17
|
+
### [v1.0.1][1.0.1]
|
|
18
|
+
* Remove Unnecessary dependency
|
|
19
|
+
|
|
20
|
+
### [v1.0.0][1.0.0]
|
|
21
|
+
* Support Capistrano 3
|
|
22
|
+
|
|
23
|
+
### [v0.0.3][0.0.3]
|
|
24
|
+
* Support Capistrano 2
|
|
25
|
+
|
|
26
|
+
##See Also
|
|
27
|
+
### Capitomcat Jenkins Plugin
|
|
28
|
+
* Home page : https://wiki.jenkins-ci.org/display/JENKINS/Capitomcat+Plugin
|
|
29
|
+
* Source : https://github.com/jenkinsci/capitomcat-plugin
|
|
30
|
+
|
|
7
31
|
##Requirement
|
|
8
32
|
###Gem Dependency
|
|
9
33
|
* Ruby >= 1.9
|
data/capitomcat.gemspec
CHANGED
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
|
13
13
|
s.authors = ['Sunggun Yu']
|
|
14
14
|
s.email = ['sunggun.dev@gmail.com']
|
|
15
15
|
s.licenses = ['Apache 2.0']
|
|
16
|
-
s.date = %q{2014-01-
|
|
16
|
+
s.date = %q{2014-01-24}
|
|
17
17
|
s.homepage = 'http://sunggun-yu.github.io/capitomcat/'
|
|
18
18
|
s.summary = %q{Capistrano 3 recipe for Tomcat web application deployment}
|
|
19
19
|
s.description = %q{Capitomcat is the Capistrano 3 recipe for Tomcat web application deployment.}
|
|
@@ -21,5 +21,5 @@ Gem::Specification.new do |s|
|
|
|
21
21
|
s.files = `git ls-files`.split("\n")
|
|
22
22
|
s.require_paths = ["lib"]
|
|
23
23
|
|
|
24
|
-
s.add_dependency 'capistrano', '
|
|
24
|
+
s.add_dependency 'capistrano', '>= 3.1.0'
|
|
25
25
|
end
|
|
@@ -68,8 +68,8 @@ class Application
|
|
|
68
68
|
set :use_parallel, false
|
|
69
69
|
|
|
70
70
|
capistrano = Capistrano::Application.new
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
Rake.application.add_import('../lib/native/tasks/tomcat_webapp.cap')
|
|
72
|
+
Rake.application.load_imports
|
|
73
73
|
capistrano.invoke('tomcat:deploy')
|
|
74
74
|
end
|
|
75
75
|
end
|
|
@@ -111,8 +111,7 @@ namespace :capitomcat do
|
|
|
111
111
|
# Move tmp WAR file to actual path
|
|
112
112
|
change_owner_and_move(tmp_war_file, tomcat_war_file, tomcat_user, tomcat_user_group)
|
|
113
113
|
else
|
|
114
|
-
|
|
115
|
-
exit(1)
|
|
114
|
+
raise("Local WAR file does not existing. : #{local_war_file}")
|
|
116
115
|
end
|
|
117
116
|
end
|
|
118
117
|
|
|
@@ -122,8 +121,7 @@ namespace :capitomcat do
|
|
|
122
121
|
context_template_file = fetch(:context_template_file)
|
|
123
122
|
|
|
124
123
|
if !File.exists?(context_template_file)
|
|
125
|
-
|
|
126
|
-
exit(1)
|
|
124
|
+
raise('Context template file does not existing.')
|
|
127
125
|
end
|
|
128
126
|
|
|
129
127
|
# local variables for erb file
|
data/lib/capitomcat/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,33 +1,27 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capitomcat
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sunggun Yu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-01-
|
|
11
|
+
date: 2014-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
15
15
|
version_requirements: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '3.0'
|
|
20
17
|
- - ">="
|
|
21
18
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 3.0
|
|
19
|
+
version: 3.1.0
|
|
23
20
|
requirement: !ruby/object:Gem::Requirement
|
|
24
21
|
requirements:
|
|
25
|
-
- - "~>"
|
|
26
|
-
- !ruby/object:Gem::Version
|
|
27
|
-
version: '3.0'
|
|
28
22
|
- - ">="
|
|
29
23
|
- !ruby/object:Gem::Version
|
|
30
|
-
version: 3.0
|
|
24
|
+
version: 3.1.0
|
|
31
25
|
prerelease: false
|
|
32
26
|
type: :runtime
|
|
33
27
|
description: Capitomcat is the Capistrano 3 recipe for Tomcat web application deployment.
|