fog-openstack 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fog-openstack.gemspec +1 -1
- data/lib/fog/openstack/auth/name.rb +1 -1
- data/lib/fog/openstack/core.rb +1 -1
- data/lib/fog/openstack/orchestration.rb +1 -0
- data/lib/fog/openstack/orchestration/models/stacks.rb +4 -3
- data/lib/fog/openstack/orchestration/requests/show_stack.rb +26 -0
- data/lib/fog/openstack/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39e11cb8441eee8bdf906b567452056bd23a813ff1bad86311b36d21290e046e
|
4
|
+
data.tar.gz: 8253a9390f575e00c9fb1464292fa2506e900e0d1b342f7a744749359d94bd78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d31e9d1bd4557fb215069e6065dcc450334a0bf978caf288151f4d2b074578c5feeba44a51890804f9ea8fe5974f2209f9af96e114efe24203eeac4ce827eb7
|
7
|
+
data.tar.gz: 54036127d26fce6a4d9e7087216f6a36d2c3ae389ea314c988e66da885bc1531db44aedf1ee2ee39d1281063bfb23e12a62425fb3fae0161c5fa780ba27cf235
|
data/fog-openstack.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency "mime-types-data"
|
32
32
|
spec.add_development_dependency 'minitest'
|
33
33
|
spec.add_development_dependency 'pry-byebug'
|
34
|
-
spec.add_development_dependency 'rake', '
|
34
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
35
35
|
spec.add_development_dependency 'rubocop'
|
36
36
|
spec.add_development_dependency 'shindo', '~> 0.3'
|
37
37
|
spec.add_development_dependency 'vcr'
|
data/lib/fog/openstack/core.rb
CHANGED
@@ -20,10 +20,11 @@ module Fog
|
|
20
20
|
load_response(data, 'stacks')
|
21
21
|
end
|
22
22
|
|
23
|
-
# Deprecated
|
24
23
|
def find_by_id(id)
|
25
|
-
|
26
|
-
|
24
|
+
data = service.show_stack(id).body['stack']
|
25
|
+
new(data)
|
26
|
+
rescue Fog::OpenStack::Orchestration::NotFound
|
27
|
+
nil
|
27
28
|
end
|
28
29
|
|
29
30
|
def get(arg1, arg2 = nil)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
class Orchestration
|
4
|
+
class Real
|
5
|
+
def show_stack(id)
|
6
|
+
request(
|
7
|
+
:method => 'GET',
|
8
|
+
:path => "stacks/#{id}",
|
9
|
+
:expects => 200
|
10
|
+
)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
class Mock
|
15
|
+
def show_stack(_id)
|
16
|
+
stack = data[:stack].values
|
17
|
+
|
18
|
+
Excon::Response.new(
|
19
|
+
:body => {'stack' => stack},
|
20
|
+
:status => 200
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-openstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Darby
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
@@ -140,16 +140,16 @@ dependencies:
|
|
140
140
|
name: rake
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 12.3.3
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 12.3.3
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rubocop
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1060,6 +1060,7 @@ files:
|
|
1060
1060
|
- lib/fog/openstack/orchestration/requests/show_resource_metadata.rb
|
1061
1061
|
- lib/fog/openstack/orchestration/requests/show_resource_schema.rb
|
1062
1062
|
- lib/fog/openstack/orchestration/requests/show_resource_template.rb
|
1063
|
+
- lib/fog/openstack/orchestration/requests/show_stack.rb
|
1063
1064
|
- lib/fog/openstack/orchestration/requests/show_stack_details.rb
|
1064
1065
|
- lib/fog/openstack/orchestration/requests/update_stack.rb
|
1065
1066
|
- lib/fog/openstack/orchestration/requests/validate_template.rb
|