ops_manager_ui_drivers 2.22.1 → 2.22.2

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: 00a1dc81a9069f4cc7c3209f1fdc52257304aed4
4
- data.tar.gz: 15843e06cc13ccdb0881b610c830c239d011aaaf
3
+ metadata.gz: d08cbb2a139c548f6d6004bf7bdf5b38fa016d0e
4
+ data.tar.gz: f4c994963ee6302950649ba718711572e7877d44
5
5
  SHA512:
6
- metadata.gz: 5e6fdba338085a9c66416f1d2ad0d28e5a37bdb61db2eac3bb4fd56ac235d749f23c87cc2386fbacf363036747f2aca4dbc63f0899c0226d5486c9c91f40c690
7
- data.tar.gz: c8a350ba5b9bbfe424e591e590e3957f5372087185a313406173ae01b4ab5c71e3927327745c9ac8ab6b7a64e8cf4172dff83fc9d18868ff6a5d2956d206513c
6
+ metadata.gz: a195b9bc34ecec7ce0c0990de4e3ce81abaf638da24deae18396e476eb0fb17e9e2e575ad6d090c37c7315fee52b6afb8f42d72f8e3e2513bae442d0b5435d42
7
+ data.tar.gz: 7ebf9514e5d1eb2c4ac66f2bf802fde5a49276e79d21b89c1ca4c77c7448767bcf2540085521f48430b2a1336ba007ea90fc659b30bb367e9f59615e7184aa56
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.22.1'
2
+ VERSION = '2.22.2'
3
3
  end
@@ -49,6 +49,19 @@ module OpsManagerUiDrivers
49
49
  http.request(put('v0/staged/director/second_network', {second_network: {name: network_name}}.to_json, uaa_token.auth_header))
50
50
  end
51
51
 
52
+ def most_recent_installation_log
53
+ all_installations = JSON.parse(
54
+ http.request(get('v0/installations', uaa_token.auth_header)).read_body
55
+ )['installations']
56
+ return if all_installations.empty?
57
+
58
+ most_recent_installation_id = all_installations.first['id']
59
+ installation_log_path = "v0/installations/#{most_recent_installation_id}/logs"
60
+
61
+ most_recent_installation_log = JSON.parse(http.request(get(installation_log_path, uaa_token.auth_header)).read_body)['logs']
62
+ most_recent_installation_log
63
+ end
64
+
52
65
  private
53
66
  def uaa_uri
54
67
  if @host_uri.host == 'localhost' && @host_uri.port == 3000
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_manager_ui_drivers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.22.1
4
+ version: 2.22.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-01 00:00:00.000000000 Z
11
+ date: 2016-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport