capistrano-psw 1.0.0.pre34 → 1.0.0.pre35

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6b61dbaec2f8f0cac76941f3095074c3404a71e
4
- data.tar.gz: 66e72333aea714660f5981c32d3067fd35d3c8a4
3
+ metadata.gz: b9f60cb544de44bea7b4729226b3e02d4bf4af28
4
+ data.tar.gz: 5ad8ff5e9c74abd4d4407edc62604bc2841e72eb
5
5
  SHA512:
6
- metadata.gz: ed260af184c0e90f492174ed77be814987b9e6f3100650bf01c192ee9ec6a7312c32b11cfeb97cc5ffd9266a351eede23ff6428be234a98610ef1533e70cf6e9
7
- data.tar.gz: b7b6221258d8282f0e9a7187cdabb23f8acd8704098e812dee3557ce8079d38cfea0d3f1029c7eb6a51a138b61976b14f4187bc2b8da781129f632a91094a8df
6
+ metadata.gz: 59ce3e6ea10f45feda0d1084eb37ef101ffb8540a048d885f86bceb746679fab754a3437ecb2f3c27e07bddb5bba37c6e6eff3198f0272d7a4d1257a4709a2da
7
+ data.tar.gz: 7c3b3ed6c541aba84d311e299e192481a9528b6d723889f7f8fba3acdf2d0cce57a71cb932a90fa4f3f31f9e88df9e6e7a259384fb3389ca6a3528947ebd406c
data/README.md CHANGED
@@ -296,17 +296,17 @@ before :'psw_apache2:deploy_ssl_certs', :set_apache2_options do
296
296
  set :psw_apache2_shared_cert_dir, ""
297
297
  end
298
298
  ```
299
- ## Java EE-related Tasks
299
+ ## Java-related Tasks
300
300
  These tasks are needed to facilitate Java EE deployments.
301
301
 
302
302
 
303
- ### psw_javaee:explode_war_file
303
+ ### psw_java:explode_war_file
304
304
  This task will explode a WAR file into a specified directory.
305
305
  Parameters:
306
306
  *explode_directory [String] - The directory to which the exploded contents will be written
307
307
  *war_file_location [String] - The absolute path of the WAR file.
308
308
 
309
- ### psw_javaee:deploy_ssl_certs
309
+ ### psw_java:deploy_ssl_certs
310
310
  This task will copy SSL certificates defined in the application's shared directory
311
311
  to /etc/ssl/certs and /etc/ssl/private. a Java Keystore will be created for Tomcat's reference.
312
312
  The task takes the following parameters:
@@ -318,7 +318,7 @@ The task takes the following parameters:
318
318
  *[String] keystore_file - the file path of the keystore.
319
319
  The default value '/<Capistrano Shared Path>/tomcat/keystore.jks'
320
320
 
321
- ### psw_javaee:configure_tomcat
321
+ ### psw_java:configure_tomcat
322
322
  This task task will override the Tomcat server definition. This method allows consumers to
323
323
  define an ERB template as well as pass in a ruby binding to populate it.
324
324
  The task takes the following parameters:
@@ -10,6 +10,6 @@
10
10
 
11
11
  module Capistrano
12
12
  module Psw
13
- VERSION = "1.0.0.pre34"
13
+ VERSION = "1.0.0.pre35"
14
14
  end
15
15
  end
@@ -1,4 +1,4 @@
1
- # == psw-javaee.cap
1
+ # == psw-java.cap
2
2
  #
3
3
  # Contains the capistrano tasks needed to facilitate Java EE deployments.
4
4
  #
@@ -6,13 +6,13 @@
6
6
  #
7
7
  # == Tasks
8
8
  #
9
- # === psw_javaee:explode_war_file
9
+ # === psw_java:explode_war_file
10
10
  # This task will explode a WAR file into a specified directory.
11
11
  # Parameters:
12
12
  # *explode_directory [String] - The directory to which the exploded contents will be written
13
13
  # *war_file_location [String] - The absolute path of the WAR file.
14
14
  #
15
- # === psw_javaee:deploy_ssl_certs
15
+ # === psw_java:deploy_ssl_certs
16
16
  # This task will copy SSL certificates defined in the application's shared directory
17
17
  # to /etc/ssl/certs and /etc/ssl/private. a Java Keystore will be created for Tomcat's reference.
18
18
  # The task takes the following parameters:
@@ -25,7 +25,7 @@
25
25
  # @param [String] keystore_file - the file path of the keystore.
26
26
  # The default value '/<Capistrano Shared Path>/tomcat/keystore.jks'
27
27
  #
28
- # === psw_javaee:configure_tomcat
28
+ # === psw_java:configure_tomcat
29
29
  # This task task will override the Tomcat server definition. This method allows consumers to
30
30
  # define an ERB template as well as pass in a ruby binding to populate it.
31
31
  # The task takes the following parameters:
@@ -44,7 +44,7 @@
44
44
  #
45
45
  require 'capistrano/psw/peppr_app_deploy_file_utils'
46
46
 
47
- namespace :psw_javaee do
47
+ namespace :psw_java do
48
48
 
49
49
  desc 'Explodes a WAR file into a specified directory'
50
50
  task :explode_war_file, :explode_directory, :war_file_location do |t, args|
@@ -128,9 +128,17 @@ namespace :psw_peppr_app_deploy do
128
128
  next if file == '.' || file == '..' || file == '.absolute_paths'
129
129
 
130
130
  if File.directory?(file)
131
+ new_file_path = File.join(shared_path, file)
132
+ debug "Deleting existing environment file: #{new_file_path}"
133
+ sudo :rm, '-rf', new_file_path
134
+
131
135
  debug "Creating a symlink for environment folder #{remote_shared_files_path}/#{file}..."
132
136
  sudo :ln, '-sf', "#{remote_shared_files_path}/#{file}", "#{shared_path}"
133
137
  else
138
+ new_file_path = File.join(shared_path, file)
139
+ debug "Deleting existing environment file: #{new_file_path}"
140
+ sudo :rm, '-rf', new_file_path
141
+
134
142
  debug "Creating a symlink for environment file #{remote_shared_files_path}/#{file}..."
135
143
  sudo :ln, '-sf', "#{remote_shared_files_path}/#{file}", "#{shared_path}/#{file}"
136
144
  end
@@ -2,14 +2,14 @@ require "rake"
2
2
  require File.expand_path('../spec_helper.rb', __FILE__)
3
3
 
4
4
 
5
- describe "psw_javaee:" do
5
+ describe "psw_java:" do
6
6
  describe "explode_war_file" do
7
7
  let(:rake) { Rake::Application.new }
8
- subject { rake["psw_javaee:explode_war_file"] }
8
+ subject { rake["psw_java:explode_war_file"] }
9
9
 
10
10
  before do
11
11
  Rake.application = rake
12
- Rake.application.add_import("./resources/lib/capistrano/tasks/psw-javaee.cap")
12
+ Rake.application.add_import("./resources/lib/capistrano/tasks/psw-java.cap")
13
13
  Rake.application.load_imports()
14
14
  end
15
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-psw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre34
4
+ version: 1.0.0.pre35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lexmark International Technology S.A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-27 00:00:00.000000000 Z
11
+ date: 2014-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -89,7 +89,7 @@ files:
89
89
  - lib/capistrano/psw/version.rb
90
90
  - resources/lib/capistrano/tasks/psw-apache2.cap
91
91
  - resources/lib/capistrano/tasks/psw-clockwork.cap
92
- - resources/lib/capistrano/tasks/psw-javaee.cap
92
+ - resources/lib/capistrano/tasks/psw-java.cap
93
93
  - resources/lib/capistrano/tasks/psw-nginx.cap
94
94
  - resources/lib/capistrano/tasks/psw-peppr-app-deploy.cap
95
95
  - resources/lib/capistrano/tasks/psw-peppr.cap
@@ -97,7 +97,7 @@ files:
97
97
  - resources/lib/capistrano/tasks/psw-sidekiq.cap
98
98
  - spec/psw-apache2_spec.rb
99
99
  - spec/psw-clockwork_spec.rb
100
- - spec/psw-javaee_spec.rb
100
+ - spec/psw-java_spec.rb
101
101
  - spec/psw-nginx_spec.rb
102
102
  - spec/psw-peppr-app-deploy_spec.rb
103
103
  - spec/psw-peppr_spec.rb
@@ -134,7 +134,7 @@ summary: Contains Capistrano v3 Deployment Tasks
134
134
  test_files:
135
135
  - spec/psw-apache2_spec.rb
136
136
  - spec/psw-clockwork_spec.rb
137
- - spec/psw-javaee_spec.rb
137
+ - spec/psw-java_spec.rb
138
138
  - spec/psw-nginx_spec.rb
139
139
  - spec/psw-peppr-app-deploy_spec.rb
140
140
  - spec/psw-peppr_spec.rb