cfhighlander 0.3.0.alpha.1531096265 → 0.3.0.alpha.1531198720
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cfhighlander.dsl.template.rb +4 -3
- data/lib/cfhighlander.model.component.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b686f58eba35660bb5220c67f1a9486e141b5835422f7750bcc49445b60d7e4
|
4
|
+
data.tar.gz: 045635c52efbfb8c6c55053f576e463206a8ca2383827aafe110bddab6d7ed67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6637bcbbd443d95eb32ecbe5a68b88f5d6b5210dfd305a8a9878e2add6c3a01a40069edb1808058165b437caf46b1dfd1f04540af975f344c838c55e90c1dc4
|
7
|
+
data.tar.gz: f3c160205f24825ff5d53530bb9bee25061a9ff5744b44a662e8b58c2ee46090f01b8cad8cb053ad7faa05939f7b00858c194e7da671538b9adaa7c8a34a127f
|
@@ -452,6 +452,10 @@ def CfhighlanderTemplate(&block)
|
|
452
452
|
instance.config['component_version'] = @version
|
453
453
|
end
|
454
454
|
|
455
|
+
|
456
|
+
instance.name = @template.template_name
|
457
|
+
instance.instance_eval(&block)
|
458
|
+
|
455
459
|
unless @distribution_bucket.nil?
|
456
460
|
instance.DistributionBucket(@distribution_bucket)
|
457
461
|
end
|
@@ -459,9 +463,6 @@ def CfhighlanderTemplate(&block)
|
|
459
463
|
instance.DistributionPrefix(@distribution_prefix)
|
460
464
|
end
|
461
465
|
|
462
|
-
instance.name = @template.template_name
|
463
|
-
instance.instance_eval(&block)
|
464
|
-
|
465
466
|
# process convention over configuration componentname.config.yaml files
|
466
467
|
@potential_subcomponent_overrides.each do |name, config|
|
467
468
|
if (not instance.subcomponents.find{|s|s.name == name}.nil?)
|
@@ -40,6 +40,20 @@ module Cfhighlander
|
|
40
40
|
@potential_subcomponent_overrides = {}
|
41
41
|
end
|
42
42
|
|
43
|
+
def distribution_bucket=(value)
|
44
|
+
if not @highlander_dsl.nil?
|
45
|
+
@highlander_dsl.DistributionBucket(value)
|
46
|
+
end
|
47
|
+
@distribution_bucket = value
|
48
|
+
end
|
49
|
+
|
50
|
+
def distribution_prefix=(value)
|
51
|
+
if not @highlander_dsl.nil?
|
52
|
+
@highlander_dsl.DistributionPrefix(value)
|
53
|
+
end
|
54
|
+
@distribution_prefix = value
|
55
|
+
end
|
56
|
+
|
43
57
|
# load component configuration files
|
44
58
|
def load_config()
|
45
59
|
@config = {} if @config.nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfhighlander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.0.alpha.
|
4
|
+
version: 0.3.0.alpha.1531198720
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikola Tosic
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-07-
|
12
|
+
date: 2018-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: highline
|