sparkle_formation 1.1.8 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/stack-policies.md +4 -0
- data/lib/sparkle_formation/sparkle_formation.rb +7 -1
- data/lib/sparkle_formation/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: ef4f6f158ed4355b25821d57ad5a5ce55a2ca02b
|
4
|
+
data.tar.gz: e8e8bf70d1aa0e00f4cd0a8276f4e56f710dc85c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6a6fb065872b62d1e3cb5706f243ad96ca28b5c4d5ccc123fa25dd8c86f95e45cfd04774d07e061e477a418ec43f17fd969a2ab5f56f33ab1eaef4a16aab95e
|
7
|
+
data.tar.gz: cf1fbb2ca90637d667720139d2c13aad6ff1fe38eb2f84d23a529a70eb044db967e2a7936f6102dacd8780697b32acc5a7b3cb26153697379b751649d2c94440
|
data/CHANGELOG.md
CHANGED
data/docs/stack-policies.md
CHANGED
@@ -88,3 +88,7 @@ This generates a policy data structure:
|
|
88
88
|
]
|
89
89
|
}
|
90
90
|
~~~
|
91
|
+
|
92
|
+
_NOTE: For stack policy usage with the [sfn](http://www.sparkleformation.io/docs/sfn)
|
93
|
+
command, please refer to the [built-in callbacks](http://www.sparkleformation.io/docs/sfn/callbacks.html#builtin-callbacks)
|
94
|
+
documentation._
|
@@ -240,7 +240,13 @@ class SparkleFormation
|
|
240
240
|
options = {}
|
241
241
|
end
|
242
242
|
to_nest = struct._self.sparkle.get(:template, template)
|
243
|
-
resource_name =
|
243
|
+
resource_name = template.to_s.gsub('__', '_')
|
244
|
+
unless(args.empty?)
|
245
|
+
resource_name = [
|
246
|
+
options.delete(:overwrite_name) ? nil : resource_name,
|
247
|
+
args.map{|a| Bogo::Utility.snake(a)}.join('_')
|
248
|
+
].flatten.compact.join('_').to_sym
|
249
|
+
end
|
244
250
|
nested_template = self.compile(to_nest[:path], :sparkle)
|
245
251
|
nested_template.parent = struct._self
|
246
252
|
nested_template.name = Bogo::Utility.camel(resource_name)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sparkle_formation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: attribute_struct
|