lono 1.1.1 → 1.1.2
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/README.md +14 -1
- data/lib/lono/template.rb +1 -1
- data/lib/lono/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: 7258f929ba23cffea30c8b5152b6b84f9e336db4
|
4
|
+
data.tar.gz: 1270e0b6a842b14e240631cecfcc69ed078c80cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4276cc3302a72d97cab08a931ed9b0ed585dca67461e920b58c08bfafb4b51138f4e84f7b4b39cf8154964cbffcac39fceaa7e7376ee6c9404436eefd5e39c1
|
7
|
+
data.tar.gz: e22a1a9ae7cc7a9dc933c86c7c882924b60bc01effacf1034faae268f4e3236ba083dcaace35f107fe31dacfd8c0f79da15d368afec683cf6c156d1e24c865b6
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [1.1.2]
|
7
|
+
- erb error fix context off by 1
|
8
|
+
|
6
9
|
## [1.1.1]
|
7
10
|
- default detected format to yaml if no templates defined yet
|
8
11
|
|
data/README.md
CHANGED
@@ -14,6 +14,15 @@
|
|
14
14
|
|
15
15
|
Lono is a CloudFormation Template generator. Lono generates CloudFormation templates based on ERB ruby templates in either `yaml` or `json` format.
|
16
16
|
|
17
|
+
Lono can be used with [lono-cfn](https://github.com/tongueroo/lono-cfn). Lono-cfn automatically calls `lono generate` as part of launching the stack so you never forget to run it. These blog posts cover both lono and lono-cfn:
|
18
|
+
|
19
|
+
* [Why Generate CloudFormation Templates with Lono](https://medium.com/boltops/why-generate-cloudformation-templates-with-lono-65b8ea5eb87d)
|
20
|
+
* [Generating CloudFormation Templates with Lono](https://medium.com/boltops/generating-cloudformation-templates-with-lono-4709afa1299b)
|
21
|
+
* [AutoScaling CloudFormation Template with Lono](https://medium.com/boltops/autoscaling-cloudformation-template-with-lono-3dc520480c5f)
|
22
|
+
* [CloudFormation Tools: lono, lono-params and lono-cfn Together
|
23
|
+
](https://medium.com/boltops/cloudformation-tools-lono-lono-params-and-lono-cfn-play-together-620af51e616)
|
24
|
+
* [AWS CloudFormation dry-run with lono-cfn plan](https://medium.com/boltops/aws-cloudformation-dry-run-with-lono-cfn-plan-2a1e0f80d13c)
|
25
|
+
|
17
26
|
**UPDATE**: lono now supports yaml format for CloudFormation! The old json format is still supported. For current projects, you do not have to change anything as the format is autodetected as part of `lono generate`.
|
18
27
|
|
19
28
|
Newly generated projects with `lono new infra` will use the yaml format by default. If you prefer the json format use `lono new --format json infra`. You cannot mix and match json and yaml format in one project, it's either all json or yaml. If any one has questions feel free to ping me: tongueroo@gmail.com.
|
@@ -158,6 +167,10 @@ Resources:
|
|
158
167
|
Type: AWS::AutoScaling::LaunchConfiguration
|
159
168
|
```
|
160
169
|
|
170
|
+
You can use the generated CloudFormation templates in the `output` folder just as you would a normal CloudFormation template. Here's a flow chart of the overall process.
|
171
|
+
|
172
|
+
![Lono flowchart](http://tongueroo.com/images/github-readmes/lono-flowchart.png "Lono flowchart")
|
173
|
+
|
161
174
|
## Template helper methods
|
162
175
|
|
163
176
|
There are helper methods that are available in templates.
|
@@ -224,4 +237,4 @@ Verus the rather verbose standard CloudFormation parameters json file:
|
|
224
237
|
]
|
225
238
|
```
|
226
239
|
|
227
|
-
More info about lono-
|
240
|
+
More info about lono-params here: [lono-params](https://github.com/tongueroo/lono-params) - Tool to generate a CloudFormation parameters json formatted file from a simplier env like file.
|
data/lib/lono/template.rb
CHANGED
@@ -62,7 +62,7 @@ module Lono
|
|
62
62
|
|
63
63
|
template_lines = template.split("\n")
|
64
64
|
context = 5 # lines of context
|
65
|
-
top, bottom = [line-context, 0].max, line+context
|
65
|
+
top, bottom = [line-context-1, 0].max, line+context-1
|
66
66
|
spacing = template_lines.size.to_s.size
|
67
67
|
template_lines[top..bottom].each_with_index do |line_content, index|
|
68
68
|
line_number = top+index+1
|
data/lib/lono/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lono
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|