lono 3.0.1 → 3.1.1
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/.gitignore +1 -0
- data/CHANGELOG.md +6 -0
- data/lib/lono.rb +1 -0
- data/lib/lono/cfn/diff.rb +1 -1
- data/lib/lono/cfn/util.rb +1 -1
- data/lib/lono/cli.rb +9 -1
- data/lib/lono/help.rb +14 -1
- data/lib/lono/importer.rb +60 -0
- data/lib/lono/template/upload.rb +57 -1
- data/lib/lono/version.rb +1 -1
- data/spec/fixtures/my_project/config/{lono.rb → templates/base/stacks.rb} +0 -0
- data/spec/fixtures/raw_templates/aws-waf-security-automations.template +1575 -0
- data/spec/lib/lono_spec.rb +10 -1
- metadata +7 -4
data/spec/lib/lono_spec.rb
CHANGED
@@ -2,10 +2,19 @@ require_relative "../spec_helper"
|
|
2
2
|
|
3
3
|
describe Lono do
|
4
4
|
describe "lono" do
|
5
|
+
before(:each) do
|
6
|
+
@args = "--project-root spec/fixtures/my_project"
|
7
|
+
end
|
8
|
+
|
5
9
|
it "generate should build templates" do
|
6
|
-
out = execute("./bin/lono generate
|
10
|
+
out = execute("./bin/lono generate #{@args}")
|
7
11
|
expect(out).to match /Generating both CloudFormation template and parameter/
|
8
12
|
end
|
13
|
+
|
14
|
+
it "import should download template" do
|
15
|
+
out = execute("./bin/lono import spec/fixtures/raw_templates/aws-waf-security-automations.template #{@args}")
|
16
|
+
expect(out).to match /Importing Raw CloudFormation template and lono-ifying it/
|
17
|
+
end
|
9
18
|
end
|
10
19
|
end
|
11
20
|
|
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: 3.
|
4
|
+
version: 3.1.1
|
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-09-
|
11
|
+
date: 2017-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -261,6 +261,7 @@ files:
|
|
261
261
|
- lib/lono/default/settings.yml
|
262
262
|
- lib/lono/env.rb
|
263
263
|
- lib/lono/help.rb
|
264
|
+
- lib/lono/importer.rb
|
264
265
|
- lib/lono/new.rb
|
265
266
|
- lib/lono/param.rb
|
266
267
|
- lib/lono/param/generator.rb
|
@@ -311,7 +312,7 @@ files:
|
|
311
312
|
- lib/starter_projects/yaml_project/templates/web.yml
|
312
313
|
- lono.gemspec
|
313
314
|
- spec/fixtures/cfn.json
|
314
|
-
- spec/fixtures/my_project/config/
|
315
|
+
- spec/fixtures/my_project/config/templates/base/stacks.rb
|
315
316
|
- spec/fixtures/my_project/params/my-stack.txt
|
316
317
|
- spec/fixtures/my_project/templates/.gitkeep
|
317
318
|
- spec/fixtures/my_project/templates/my-stack.yml.erb
|
@@ -319,6 +320,7 @@ files:
|
|
319
320
|
- spec/fixtures/params/envonly/params/prod/network.txt
|
320
321
|
- spec/fixtures/params/overlay/params/base/network.txt
|
321
322
|
- spec/fixtures/params/overlay/params/prod/network.txt
|
323
|
+
- spec/fixtures/raw_templates/aws-waf-security-automations.template
|
322
324
|
- spec/lib/lono/cfn_spec.rb
|
323
325
|
- spec/lib/lono/new_spec.rb
|
324
326
|
- spec/lib/lono/param/generator_spec.rb
|
@@ -368,7 +370,7 @@ summary: Lono is a CloudFormation Template ruby generator. Lono generates Cloud
|
|
368
370
|
templates based on ERB templates.
|
369
371
|
test_files:
|
370
372
|
- spec/fixtures/cfn.json
|
371
|
-
- spec/fixtures/my_project/config/
|
373
|
+
- spec/fixtures/my_project/config/templates/base/stacks.rb
|
372
374
|
- spec/fixtures/my_project/params/my-stack.txt
|
373
375
|
- spec/fixtures/my_project/templates/.gitkeep
|
374
376
|
- spec/fixtures/my_project/templates/my-stack.yml.erb
|
@@ -376,6 +378,7 @@ test_files:
|
|
376
378
|
- spec/fixtures/params/envonly/params/prod/network.txt
|
377
379
|
- spec/fixtures/params/overlay/params/base/network.txt
|
378
380
|
- spec/fixtures/params/overlay/params/prod/network.txt
|
381
|
+
- spec/fixtures/raw_templates/aws-waf-security-automations.template
|
379
382
|
- spec/lib/lono/cfn_spec.rb
|
380
383
|
- spec/lib/lono/new_spec.rb
|
381
384
|
- spec/lib/lono/param/generator_spec.rb
|