aem-deploy 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7df2861da356919d7b9c1f4eab178d6f5a7f452c
4
- data.tar.gz: 1f69251f0c79f8b38f2c5e54e519761a40923652
3
+ metadata.gz: 75a2e40e8836ad8bd24ce809fbc537a22b22c994
4
+ data.tar.gz: 8ba873d7afce470d8348d44c0b925c8494318992
5
5
  SHA512:
6
- metadata.gz: a7ffd0bc21de0d2ef4c3007ead0c6254931c45a5a049f0977f82c040f912d5c7dc216de6f70fe6fd45fcc0c68f3d0f611b5dd1bbf6f9ab8f0315e3a92ac02656
7
- data.tar.gz: b41c9d447d05f4aea79573c1a4a1d8e4f70a6af78426acdc7fb26b78906be4883f4217539c01ae1d1ec9ea8a8f44f067cddf531a86bf75d6bee494b690feed4f
6
+ metadata.gz: da4a51bf70b7cad5e959e81d3f5192e67c39e3390c81735408bcfc1c1d43993b2bfc891bb6d462f2aae67df41111942a155dbe4933420e10e84826205ef048d7
7
+ data.tar.gz: aef0d5f700e2d24df4bfa31eff3279d6e6ea8675770c09d6964d7fab7306bd0327ec16a02b233ef87be5150ff56d3df15f98c2563df375d94f3f60b7937a855b
@@ -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("http://#{@user}:#{@pass}@#{@host}/crx/packmgr/service/.json", :cmd => 'upload', :package => File.new(package_path, 'rb'), :force => true, :timeout => 300)
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("http://#{user}:#{pass}@#{host}/crx/packmgr/service/.json#{@upload_path}", :cmd => 'install', :timeout => 300)
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
@@ -1,5 +1,5 @@
1
1
  module Aem
2
2
  module Deploy
3
- VERSION = "0.1.15"
3
+ VERSION = "0.1.16"
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.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch Eaton