aem-deploy 0.1.22 → 0.1.23
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 +2 -11
- 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: 0cc4178db07e9d1f1223292b04aae8df25558ff0
|
4
|
+
data.tar.gz: 445348c56009a8c207a2f5ae30b0b7db9903183d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26f221dac0e61bdd074c9533ba90455e5427ad7dbe7fb4dda2b7aeb24abcc288ca5a72b1ee5375c470df2e9473171726b1326a376f4182fd343ce586a779e0c2
|
7
|
+
data.tar.gz: 2b282883eb9f7b35f85eadd73880bfd724709c5f5c1f85eafa88490fe3b25434630cf930cb1fb539b82327d6f762b9a75c7af3aa79866547664b2edf4b1550b2
|
data/lib/aem/deploy/session.rb
CHANGED
@@ -18,7 +18,6 @@ module Aem::Deploy
|
|
18
18
|
@pass = CGI.escape(params.fetch(:pass))
|
19
19
|
@retry = params.fetch(:retry).to_i unless params[:retry].nil?
|
20
20
|
@protocol = params.fetch(:protocol) unless params[:protocol].nil?
|
21
|
-
@cert = params.fetch(:cert) unless params[:cert].nil?
|
22
21
|
if @protocol.nil?
|
23
22
|
@protocol = 'http'
|
24
23
|
end
|
@@ -41,11 +40,7 @@ module Aem::Deploy
|
|
41
40
|
# @return [Hash] installation message from crx.
|
42
41
|
# @raise [Error] if server returns anything but success.
|
43
42
|
def upload_package(package_path)
|
44
|
-
|
45
|
-
upload = RestClient::Request.execute(method: :post, url: "#{@protocol}://#{@user}:#{@pass}@#{@host}/crx/packmgr/service/.json", :ssl_ca_file => @cert, payload: {cmd: 'upload', package: File.new(package_path, 'rb'), force: true} )
|
46
|
-
else
|
47
|
-
upload = RestClient::Request.execute(method: :post, url: "#{@protocol}://#{@user}:#{@pass}@#{@host}/crx/packmgr/service/.json", payload: {cmd: 'upload', package: File.new(package_path, 'rb'), force: true} )
|
48
|
-
end
|
43
|
+
upload = RestClient::Request.execute(method: :post, url: "#{@protocol}://#{@user}:#{@pass}@#{@host}/crx/packmgr/service/.json", payload: {cmd: 'upload', package: File.new(package_path, 'rb'), force: true} )
|
49
44
|
parse_response(upload)
|
50
45
|
@upload_path = URI.encode(JSON.parse(upload)["path"])
|
51
46
|
rescue => error
|
@@ -64,11 +59,7 @@ module Aem::Deploy
|
|
64
59
|
if options[:path]
|
65
60
|
@upload_path = options[:path]
|
66
61
|
end
|
67
|
-
|
68
|
-
install = RestClient::Request.execute(method: :post, url: "#{@protocol}://#{@user}:#{@pass}@#{@host}/crx/packmgr/service/.json#{@upload_path}", :ssl_ca_file => @cert, payload: {cmd: 'install'} )
|
69
|
-
else
|
70
|
-
install = RestClient::Request.execute(method: :post, url: "#{@protocol}://#{@user}:#{@pass}@#{@host}/crx/packmgr/service/.json#{@upload_path}", payload: {cmd: 'install'} )
|
71
|
-
end
|
62
|
+
install = RestClient::Request.execute(method: :post, url: "#{@protocol}://#{@user}:#{@pass}@#{@host}/crx/packmgr/service/.json#{@upload_path}", payload: {cmd: 'install'} )
|
72
63
|
parse_response(install)
|
73
64
|
rescue => error
|
74
65
|
{error: error.to_s}.to_json
|
data/lib/aem/deploy/version.rb
CHANGED