ops_manager_ui_drivers 2.9.0 → 2.9.1

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: e1a4167df987635c34fc852144036ae61533976c
4
- data.tar.gz: d36c02806a2e46a1652a0284c7076c0a7e3b3b6d
3
+ metadata.gz: 931c9fe95c0abc57c2620295324c291f532eff01
4
+ data.tar.gz: 601a93423b0efa65a80bcc61edb9b08e4cfed5c7
5
5
  SHA512:
6
- metadata.gz: 74e7dbd020e458a3003f999f78456e85419be55ac72b2be2ba56530e05f42b284d9aa963fa98759a655d4f9071e27161377ef8d66cc709134ec1915524402ae6
7
- data.tar.gz: 60d61a40886ae180f5298346a046f5a531f7f0bddeb0807b11746c381619672743037b49beef1c2a0d4020f844da162cf2d8ad4e59898590cb450c03d7467d97
6
+ metadata.gz: 0b0629b4b0a08b6d95343d0e04b7335ff3a4566d0c80307b4d20699f46390e4d66e692441543f2d3f9c74747fc2d08e3328d0f633840d9c673a0e31540917164
7
+ data.tar.gz: 5d565017280b214164973546fb9aac1d7c5e3b72d23644962853a45755415240acf118fa4053e45a85e337e6de00ff0f2f60ead3467a828f647696dddfc3be5c
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.9.0'
2
+ VERSION = '2.9.1'
3
3
  end
@@ -14,12 +14,23 @@ module OpsManagerUiDrivers
14
14
  http.request(get('v0/products'), uaa_token.auth_header)
15
15
  end
16
16
 
17
+ def export_installation
18
+ Tempfile.new('installation.zip').tap do |tmpfile|
19
+ http.request(get('v0/installation_asset_collection', uaa_token.auth_header)) do |response|
20
+ response.read_body do |chunk|
21
+ tmpfile.write(chunk)
22
+ end
23
+ end
24
+ tmpfile.close
25
+ end
26
+ end
27
+
17
28
  private
18
29
 
19
30
  def uaa_token
20
- target_url = @host_uri.to_s + '/uaa'
21
- token_issuer = CF::UAA::TokenIssuer.new(target_url, 'opsman', nil, {:skip_ssl_validation => true})
22
- token_issuer.owner_password_grant('admin', 'admin')
31
+ target_url = @host_uri.to_s + '/uaa'
32
+ token_issuer = CF::UAA::TokenIssuer.new(target_url, 'opsman', nil, {skip_ssl_validation: true})
33
+ token_issuer.owner_password_grant(@username, @password)
23
34
  end
24
35
 
25
36
  def get(endpoint, token=nil)
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.9.0
4
+ version: 2.9.1
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-03-10 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  version: '0'
287
287
  requirements: []
288
288
  rubyforge_project:
289
- rubygems_version: 2.4.5.1
289
+ rubygems_version: 2.5.1
290
290
  signing_key:
291
291
  specification_version: 4
292
292
  summary: Capybara helpers for configuring Pivotal Ops Manager