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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75a2e40e8836ad8bd24ce809fbc537a22b22c994
4
- data.tar.gz: 8ba873d7afce470d8348d44c0b925c8494318992
3
+ metadata.gz: a75982611506ff671f2eaeebab507a926b085305
4
+ data.tar.gz: e0d2fa6261dd4cdc5715d153c0ae369610a11019
5
5
  SHA512:
6
- metadata.gz: da4a51bf70b7cad5e959e81d3f5192e67c39e3390c81735408bcfc1c1d43993b2bfc891bb6d462f2aae67df41111942a155dbe4933420e10e84826205ef048d7
7
- data.tar.gz: aef0d5f700e2d24df4bfa31eff3279d6e6ea8675770c09d6964d7fab7306bd0327ec16a02b233ef87be5150ff56d3df15f98c2563df375d94f3f60b7937a855b
6
+ metadata.gz: 268ada2f8fa4e1d43499b53bcaa573b78ef2c17506c452e050da6613be18795ac0320e704ab39710876ae251e43adf3202b632bec36c5f98eac6cd5280199bf1
7
+ data.tar.gz: 3457e3433d76e86d6e77ddf3fb2f91f4b7520786ffdb0c72b05320f0ca82fd2574e56aa9f0bb80f2c1afff87e8ac4a4c84397d32595419917749c577c0da492b
@@ -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 RestClient::RequestTimeout => error
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 RestClient::RequestTimeout => error
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 RestClient::Found => error
74
+ rescue => error
75
75
  return {msg: 'JSPs recompiled'}.to_json
76
- rescue RestClient::RequestTimeout => error
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'
@@ -1,5 +1,5 @@
1
1
  module Aem
2
2
  module Deploy
3
- VERSION = "0.1.16"
3
+ VERSION = "0.1.17"
4
4
  end
5
5
  end
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.16
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-18 00:00:00.000000000 Z
11
+ date: 2016-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler