occi-core 5.0.0.beta.2 → 5.0.0.beta.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ff25ef95f7d16fdf2db6c9d7cfb6603eec65d74
|
4
|
+
data.tar.gz: 58b65c4f48697fa1325172876d66e7fa93602f72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4529b0f62d7b9dfb8884e4bbc9fa53ea08679c8f71b3abd0359a58f0bbea64163eb1829dedb65092589117d48710f81483a8c08435d06535bd18a14a2137693
|
7
|
+
data.tar.gz: 3913ef638ad8dabd8ea4739ea2e561292fa5356075110e3f373ec3808acd34386b82d2ea5a4d47b15b5e5d5e0a6b1bf28204f182ca127aef0acd3b2959edd430
|
data/lib/occi/core/version.rb
CHANGED
@@ -3,7 +3,7 @@ module Occi
|
|
3
3
|
MAJOR_VERSION = 5 # Major update constant
|
4
4
|
MINOR_VERSION = 0 # Minor update constant
|
5
5
|
PATCH_VERSION = 0 # Patch/Fix version constant
|
6
|
-
STAGE_VERSION = 'beta.
|
6
|
+
STAGE_VERSION = 'beta.3'.freeze # use `nil` for production releases
|
7
7
|
|
8
8
|
unless defined?(::Occi::Core::VERSION)
|
9
9
|
VERSION = [
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Occi
|
2
|
+
module InfrastructureExt
|
3
|
+
module Mixins
|
4
|
+
# A helper class for manipulation with `region` parent mixin. Doesn't
|
5
|
+
# provide any additional functionality aside from the class name.
|
6
|
+
#
|
7
|
+
# @author Boris Parak <parak@cesnet.cz>
|
8
|
+
class Region < Occi::Core::Mixin
|
9
|
+
TITLE = 'OCCI Region mixin'.freeze
|
10
|
+
|
11
|
+
# See `Occi::Core::Mixin` and `Occi::Core::Category`
|
12
|
+
def initialize
|
13
|
+
schema, term = Occi::InfrastructureExt::Constants::REGION_MIXIN.split('#')
|
14
|
+
super term: term, schema: "#{schema}#", title: TITLE
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -13,6 +13,7 @@ module Occi
|
|
13
13
|
logger.debug 'Loading InfrastructureExt from InfrastructureExt::Warehouse'
|
14
14
|
Occi::InfrastructureExt::Warehouse.bootstrap! self
|
15
15
|
self << Occi::InfrastructureExt::Mixins::AvailabilityZone.new
|
16
|
+
self << Occi::InfrastructureExt::Mixins::Region.new
|
16
17
|
nil
|
17
18
|
end
|
18
19
|
|
@@ -29,6 +30,13 @@ module Occi
|
|
29
30
|
def find_availability_zones
|
30
31
|
find_dependent Occi::InfrastructureExt::Mixins::AvailabilityZone.new
|
31
32
|
end
|
33
|
+
|
34
|
+
# Returns all mixins dependent on the base `region` mixin defined by OGF.
|
35
|
+
#
|
36
|
+
# @return [Set] set of mixins dependent on `region`
|
37
|
+
def find_regions
|
38
|
+
find_dependent Occi::InfrastructureExt::Mixins::Region.new
|
39
|
+
end
|
32
40
|
end
|
33
41
|
end
|
34
42
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: occi-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.beta.
|
4
|
+
version: 5.0.0.beta.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Parak
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-06-
|
13
|
+
date: 2017-06-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -521,6 +521,7 @@ files:
|
|
521
521
|
- lib/occi/infrastructure_ext/mixins.rb
|
522
522
|
- lib/occi/infrastructure_ext/mixins/.gitkeep
|
523
523
|
- lib/occi/infrastructure_ext/mixins/availability_zone.rb
|
524
|
+
- lib/occi/infrastructure_ext/mixins/region.rb
|
524
525
|
- lib/occi/infrastructure_ext/model.rb
|
525
526
|
- lib/occi/infrastructure_ext/securitygroup.rb
|
526
527
|
- lib/occi/infrastructure_ext/securitygrouplink.rb
|