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 +4 -4
- data/lib/ops_manager_ui_drivers/version.rb +1 -1
- data/lib/ops_manager_ui_drivers/version17/api.rb +14 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 931c9fe95c0abc57c2620295324c291f532eff01
|
4
|
+
data.tar.gz: 601a93423b0efa65a80bcc61edb9b08e4cfed5c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b0629b4b0a08b6d95343d0e04b7335ff3a4566d0c80307b4d20699f46390e4d66e692441543f2d3f9c74747fc2d08e3328d0f633840d9c673a0e31540917164
|
7
|
+
data.tar.gz: 5d565017280b214164973546fb9aac1d7c5e3b72d23644962853a45755415240acf118fa4053e45a85e337e6de00ff0f2f60ead3467a828f647696dddfc3be5c
|
@@ -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
|
21
|
-
token_issuer = CF::UAA::TokenIssuer.new(target_url, 'opsman', nil, {:
|
22
|
-
token_issuer.owner_password_grant(
|
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.
|
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-
|
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.
|
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
|