aem-deploy 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aem/deploy/session.rb +4 -4
- data/lib/aem/deploy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a75982611506ff671f2eaeebab507a926b085305
|
4
|
+
data.tar.gz: e0d2fa6261dd4cdc5715d153c0ae369610a11019
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 268ada2f8fa4e1d43499b53bcaa573b78ef2c17506c452e050da6613be18795ac0320e704ab39710876ae251e43adf3202b632bec36c5f98eac6cd5280199bf1
|
7
|
+
data.tar.gz: 3457e3433d76e86d6e77ddf3fb2f91f4b7520786ffdb0c72b05320f0ca82fd2574e56aa9f0bb80f2c1afff87e8ac4a4c84397d32595419917749c577c0da492b
|
data/lib/aem/deploy/session.rb
CHANGED
@@ -39,7 +39,7 @@ module Aem::Deploy
|
|
39
39
|
upload = RestClient::Request.execute(method: :post, url: "http://#{@user}:#{@pass}@#{@host}/crx/packmgr/service/.json", payload: {cmd: 'upload', package: File.new(package_path, 'rb'), force: true} )
|
40
40
|
parse_response(upload)
|
41
41
|
@upload_path = URI.encode(JSON.parse(upload)["path"])
|
42
|
-
rescue
|
42
|
+
rescue => error
|
43
43
|
{error: error.to_s}.to_json
|
44
44
|
if @retry
|
45
45
|
puts 'retrying installation as there was a problem'
|
@@ -57,7 +57,7 @@ module Aem::Deploy
|
|
57
57
|
end
|
58
58
|
install = RestClient::Request.execute(method: :post, url: "http://#{@user}:#{@pass}@#{@host}/crx/packmgr/service/.json#{@upload_path}", payload: {cmd: 'install'} )
|
59
59
|
parse_response(install)
|
60
|
-
rescue
|
60
|
+
rescue => error
|
61
61
|
{error: error.to_s}.to_json
|
62
62
|
if @retry
|
63
63
|
puts 'retrying installation as there was a problem'
|
@@ -71,9 +71,9 @@ module Aem::Deploy
|
|
71
71
|
def recompile_jsps
|
72
72
|
begin
|
73
73
|
RestClient.post "http://#{@user}:#{@pass}@#{@host}/system/console/slingjsp", :cmd => 'recompile', :timeout => 120
|
74
|
-
rescue
|
74
|
+
rescue => error
|
75
75
|
return {msg: 'JSPs recompiled'}.to_json
|
76
|
-
rescue
|
76
|
+
rescue => error
|
77
77
|
{error: error.to_s}.to_json
|
78
78
|
if @retry
|
79
79
|
puts 'retrying installation as there was a problem'
|
data/lib/aem/deploy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aem-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mitch Eaton
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|