capitomcat 1.1.3 → 1.1.4

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 CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: !binary |-
4
- N2U1YTY0MGZlNGZmYjNkZjM1Y2JlYzFmZTI5MDhlYmRiMGY4YzI4OA==
5
- data.tar.gz: !binary |-
6
- NWViNDkxM2E1M2Q2MTYzN2FjYzA5NzIxZGFjNmY4MWMwMTcyNmU0NQ==
3
+ metadata.gz: 48868d432a96f6956fc798aecdf5becabcb713a9
4
+ data.tar.gz: 0d29561ce9b5d05dd6306041b1fc679d73fd64f3
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZGJlZWMwYzYxNzRjZDQ2ODk4NDFmOTNlOTRiNDY5YzkzNzNkZmFkNzM5YzNl
10
- NjI1NDdiN2ExZjA2MTJmZWFjMThmODRkNTVkOGU0YTAwZGNmMGVkZGJjZThm
11
- Y2Q0ZjM2MDJmMmRmMzIxNjZlOGRmODQ5ZDU5ZDFjMmQzYWUzN2Q=
12
- data.tar.gz: !binary |-
13
- MWE4OWJkZDg0Nzg5ZWVhZTgxZjI1NjFiYjMwZmRhZmU0NTU5NDMxMTIzODhl
14
- MDRmY2M4ODVhZjM0ZGVkM2FhODY4NGEzN2M3OTBiMmU1NDBiODg5ZGMxMTQx
15
- YmJlNzZkNjVmM2M2ZjkxZjIyYWI2YzI5YmNlMDRlMzNmMzA4NWY=
6
+ metadata.gz: 73550bdad1d01ffb5ab5dfcc609c2c48501d0dfab7c4262fdc6d7d9cd0e6d389d08e66d62111b526cb2327ce6aa6c944056e845ad2b68b405311a6cea0cf0bda
7
+ data.tar.gz: b73cfa67cecca1c23b115ef32246c484785cc47906c41cfe3f493ceca2f3e2ae29e40bbfb0d12b9a03ce029902900a2c5a9bdfe32437979df6ed655a770990fb
data/CHANGES.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Changes
2
+ [1.1.3]: https://github.com/sunggun-yu/capitomcat/releases/tag/v1.1.3
2
3
  [1.1.2]: https://github.com/sunggun-yu/capitomcat/releases/tag/v1.1.2
3
4
  [1.1.1]: https://github.com/sunggun-yu/capitomcat/releases/tag/v1.1.1
4
5
  [1.1.0]: https://github.com/sunggun-yu/capitomcat/releases/tag/v1.1.0
@@ -6,6 +7,9 @@
6
7
  [1.0.0]: https://github.com/sunggun-yu/capitomcat/releases/tag/v1.0.0
7
8
  [0.0.3]: https://github.com/sunggun-yu/capitomcat/releases/tag/v0.0.3
8
9
 
10
+ ## [v1.1.3][1.1.3]
11
+ * Bug Fix : There was space between "-" and "u" at Tomcat work directory cleaning task.
12
+
9
13
  ## [v1.1.2][1.1.2]
10
14
  * Bug Fix : Some Tomcat startup script need to be executed in background #6 (https://github.com/sunggun-yu/capitomcat/issues/6)
11
15
  * Start/stop command has modified to be executed in the background.
@@ -31,4 +35,4 @@
31
35
  * Support Capistrano 3
32
36
 
33
37
  ## [v0.0.3][0.0.3]
34
- * Support Capistrano 2
38
+ * Support Capistrano 2
@@ -17,7 +17,7 @@ set :tomcat_user_group, 'tomcat7'
17
17
  set :tomcat_port, '8080'
18
18
  set :tomcat_cmd, '/etc/init.d/tomcat7'
19
19
  set :use_tomcat_user_cmd, false
20
- set :tomcat_war_file, '/var/app/war/test-web.war'
20
+ set :tomcat_war_file, '/var/lib/tomcat7/webapps/test-web.war'
21
21
  set :tomcat_context_path, '/test-web'
22
22
  set :tomcat_context_file, '/var/lib/tomcat7/conf/Catalina/localhost/test-web.xml'
23
23
  set :tomcat_work_dir, '/var/lib/tomcat7/work/Catalina/localhost/test-web'
@@ -46,6 +46,9 @@ namespace :capitomcat do
46
46
  info 'Clean Work directory'
47
47
  cleanup_work_dir
48
48
 
49
+ info 'Clean Unpacked WAR directory'
50
+ cleanup_unpacked_dir
51
+
49
52
  info 'Start Tomcat'
50
53
  start_tomcat
51
54
  check_tomcat_started
@@ -54,6 +57,9 @@ namespace :capitomcat do
54
57
  stop_tomcat
55
58
  check_tomcat_stopped
56
59
 
60
+ info 'Clean Unpacked WAR directory'
61
+ cleanup_unpacked_dir
62
+
57
63
  info 'Upload WAR file'
58
64
  upload_war_file
59
65
 
@@ -183,6 +189,20 @@ namespace :capitomcat do
183
189
  warn('Tomcat work directory does not exist.')
184
190
  end
185
191
  end
192
+
193
+ # Clean-up work directory
194
+ def cleanup_unpacked_dir
195
+ # local variables
196
+ tomcat_user = fetch(:tomcat_user)
197
+ tomcat_war_file = fetch(:tomcat_war_file)
198
+ tomcat_unpacked_dir = tomcat_war_file.sub('.war', '')
199
+
200
+ if dir_exist?(tomcat_unpacked_dir)
201
+ execute :sudo, '-u', tomcat_user, 'rm -rf', tomcat_unpacked_dir
202
+ else
203
+ warn('Tomcat unpacked directory does not exist.')
204
+ end
205
+ end
186
206
 
187
207
  # Get Parallelism
188
208
  # @return :parallel or :sequence
@@ -1,3 +1,3 @@
1
1
  module Capitomcat
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capitomcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunggun Yu
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.1.0
20
- requirement: !ruby/object:Gem::Requirement
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
21
23
  requirements:
22
24
  - - ">="
23
25
  - !ruby/object:Gem::Version
24
26
  version: 3.1.0
25
- prerelease: false
26
- type: :runtime
27
27
  description: Capitomcat is the Capistrano 3 recipe for Tomcat web application deployment.
28
28
  email:
29
29
  - sunggun.dev@gmail.com
@@ -72,7 +72,7 @@ homepage: http://sunggun-yu.github.io/capitomcat/
72
72
  licenses:
73
73
  - Apache 2.0
74
74
  metadata: {}
75
- post_install_message:
75
+ post_install_message:
76
76
  rdoc_options: []
77
77
  require_paths:
78
78
  - lib
@@ -87,9 +87,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubyforge_project:
91
- rubygems_version: 2.2.1
92
- signing_key:
90
+ rubyforge_project:
91
+ rubygems_version: 2.3.0
92
+ signing_key:
93
93
  specification_version: 4
94
94
  summary: Capistrano 3 recipe for Tomcat web application deployment
95
95
  test_files: []