aem-deploy 0.1.22 → 0.1.23

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: f252fe3a7e3bc0165af8f1a1e35a114229ab6789
4
- data.tar.gz: dde7a85cc96521e70877abb76ef73473f9d8a7c7
3
+ metadata.gz: 0cc4178db07e9d1f1223292b04aae8df25558ff0
4
+ data.tar.gz: 445348c56009a8c207a2f5ae30b0b7db9903183d
5
5
  SHA512:
6
- metadata.gz: ba7394819347e07f2254692f12f3697814dbc397384c3fde0be95278db54c3a91ca25ef6bbdbb2f5a064394dd354f12466d1060565f442fe3c8244fc2dd8ab92
7
- data.tar.gz: f536335e2d498f81832e1ba8277477f82413dd5a6043778402947b341d8ac31e1e05ed5bf8f6a17d7c511e92ac1211b444f816dfa1c411e6918201e53b779d5f
6
+ metadata.gz: 26f221dac0e61bdd074c9533ba90455e5427ad7dbe7fb4dda2b7aeb24abcc288ca5a72b1ee5375c470df2e9473171726b1326a376f4182fd343ce586a779e0c2
7
+ data.tar.gz: 2b282883eb9f7b35f85eadd73880bfd724709c5f5c1f85eafa88490fe3b25434630cf930cb1fb539b82327d6f762b9a75c7af3aa79866547664b2edf4b1550b2
@@ -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
- if @protocol == 'https'
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
- if @protocol == 'https'
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
@@ -1,5 +1,5 @@
1
1
  module Aem
2
2
  module Deploy
3
- VERSION = "0.1.22"
3
+ VERSION = "0.1.23"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aem-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch Eaton