misty 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/misty/cloud.rb +2 -3
- data/lib/misty/openstack/neutron/neutron_v2_0.rb +6 -0
- data/lib/misty/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cba138d230cbc5611de24937a9260e259829f0c
|
4
|
+
data.tar.gz: 382a181297e74ca2e255fcaa75b265fae07fc182
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ed4869bf73bc5da3acbe958a6eb569af11989530a03e80fd7706b8773d2327ef4d4103617af3625a14a6674a6f8eda2ac4f56a841a1cd3bbe111b549ee4dcb9
|
7
|
+
data.tar.gz: d270aa7752c0ebefa442c10cfcab8e8023a6c7238a2fe67e7c9647aa89b5a2eb703f023aaaecebbb599fe80fd4585d2b0c63a590498061342d9ac75027013966
|
data/lib/misty/cloud.rb
CHANGED
@@ -16,7 +16,6 @@ module Misty
|
|
16
16
|
def initialize(params)# = {:auth => {}})
|
17
17
|
@params = params
|
18
18
|
@config = self.class.set_configuration(params)
|
19
|
-
@services = Misty.services
|
20
19
|
@auth = Misty::Auth.factory(params[:auth], @config)
|
21
20
|
end
|
22
21
|
|
@@ -32,7 +31,7 @@ module Misty
|
|
32
31
|
end
|
33
32
|
|
34
33
|
def build_service(service_name)
|
35
|
-
service =
|
34
|
+
service = Misty.services.find {|service| service.name == service_name}
|
36
35
|
service.options = @params[service.name] if @params[service.name]
|
37
36
|
service.version = service.options[:api_version]
|
38
37
|
version = self.class.dot_to_underscore(service.version)
|
@@ -138,7 +137,7 @@ module Misty
|
|
138
137
|
|
139
138
|
def method_missing(method_name)
|
140
139
|
services_avail = []
|
141
|
-
|
140
|
+
Misty.services.names.each do |service_name|
|
142
141
|
services_avail << service_name if /#{method_name}/.match(service_name)
|
143
142
|
end
|
144
143
|
|
@@ -75,6 +75,12 @@ module Misty::Openstack::NeutronV2_0
|
|
75
75
|
{:PUT=>[:insert_rule_into_a_firewall_policy]},
|
76
76
|
"/v2.0/fwaas/firewall_policies/{firewall_policy_id}/remove_rule"=>
|
77
77
|
{:PUT=>[:remove_rule_from_firewall_policy]},
|
78
|
+
"/v2.0/rbac-policies/{rbac_policy_id}"=>
|
79
|
+
{:GET=>[:show_rbac_policy_details],
|
80
|
+
:PUT=>[:update_rbac_policy],
|
81
|
+
:DELETE=>[:delete_rbac_policy]},
|
82
|
+
"/v2.0/rbac-policies"=>
|
83
|
+
{:GET=>[:list_rbac_policies], :POST=>[:create_rbac_policy]},
|
78
84
|
"/v2.0/security-group-rules"=>
|
79
85
|
{:GET=>[:list_security_group_rules], :POST=>[:create_security_group_rule]},
|
80
86
|
"/v2.0/security-group-rules/{security_group_rule_id}"=>
|
data/lib/misty/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: misty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gilles Dubreuil
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|