aem-deploy 0.1.15 → 0.1.16
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 +4 -4
- data/lib/aem/deploy/session.rb +3 -2
- data/lib/aem/deploy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75a2e40e8836ad8bd24ce809fbc537a22b22c994
|
|
4
|
+
data.tar.gz: 8ba873d7afce470d8348d44c0b925c8494318992
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da4a51bf70b7cad5e959e81d3f5192e67c39e3390c81735408bcfc1c1d43993b2bfc891bb6d462f2aae67df41111942a155dbe4933420e10e84826205ef048d7
|
|
7
|
+
data.tar.gz: aef0d5f700e2d24df4bfa31eff3279d6e6ea8675770c09d6964d7fab7306bd0327ec16a02b233ef87be5150ff56d3df15f98c2563df375d94f3f60b7937a855b
|
data/lib/aem/deploy/session.rb
CHANGED
|
@@ -30,12 +30,13 @@ module Aem::Deploy
|
|
|
30
30
|
install_package
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
#:timeout => 90000000, :open_timeout => 90000000
|
|
33
34
|
# Uploads Package to CRX
|
|
34
35
|
# @param [String] path to the package for upload and installation.
|
|
35
36
|
# @return [Hash] installation message from crx.
|
|
36
37
|
# @raise [Error] if server returns anything but success.
|
|
37
38
|
def upload_package(package_path)
|
|
38
|
-
upload = RestClient.post
|
|
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} )
|
|
39
40
|
parse_response(upload)
|
|
40
41
|
@upload_path = URI.encode(JSON.parse(upload)["path"])
|
|
41
42
|
rescue RestClient::RequestTimeout => error
|
|
@@ -54,7 +55,7 @@ module Aem::Deploy
|
|
|
54
55
|
if options[:path]
|
|
55
56
|
@upload_path = options[:path]
|
|
56
57
|
end
|
|
57
|
-
install = RestClient.post
|
|
58
|
+
install = RestClient::Request.execute(method: :post, url: "http://#{@user}:#{@pass}@#{@host}/crx/packmgr/service/.json#{@upload_path}", payload: {cmd: 'install'} )
|
|
58
59
|
parse_response(install)
|
|
59
60
|
rescue RestClient::RequestTimeout => error
|
|
60
61
|
{error: error.to_s}.to_json
|
data/lib/aem/deploy/version.rb
CHANGED