lono 3.3.0 → 3.3.2
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/CHANGELOG.md +6 -0
- data/lib/lono/help.rb +2 -2
- data/lib/lono/inspector.rb +1 -1
- data/lib/lono/inspector/help.rb +2 -2
- data/lib/lono/version.rb +1 -1
- data/lib/starter_projects/json_project/config/templates/base/blog.rb +1 -1
- data/lib/starter_projects/json_project/config/templates/base/stacks.rb +3 -3
- data/lib/starter_projects/json_project/params/{api-web-prod.txt → base/api-web.txt} +0 -0
- data/lib/starter_projects/yaml_project/config/templates/base/blog.rb +1 -1
- data/lib/starter_projects/yaml_project/config/templates/base/stacks.rb +3 -3
- data/spec/lib/lono/new_spec.rb +2 -2
- data/spec/lib/lono/template/dsl_spec.rb +7 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33b8dfbe5abe4a50a57843163b7d7d63c93fafe0
|
4
|
+
data.tar.gz: d6683b919f81a8c5e0ec8c9e20ae600fadbe5d63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a920f6e638ac50cd6ddefbb90b37211f6750d15d78cadab935ee8f5c959ce57c542022610a5dfd7a44dfd2a232d3f6da72c51d5ce73a51beb8ed3e2f0429903f
|
7
|
+
data.tar.gz: 923d74376b825621cfd5c4a3c5a368f495cf99cca8be3a854065edbc5b54713a0b1eabd0cced82e80930dc38d51bfa66d44a30657f82b5bebf51d310bf7204fd
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@
|
|
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
|
+
## [3.3.2]
|
7
|
+
- remove -prod from the starter project
|
8
|
+
|
9
|
+
## [3.3.1]
|
10
|
+
- update lono inspect summary help
|
11
|
+
|
6
12
|
## [3.3.0]
|
7
13
|
- add lono inspect summary
|
8
14
|
- remove lono inspect params
|
data/lib/lono/help.rb
CHANGED
data/lib/lono/inspector.rb
CHANGED
data/lib/lono/inspector/help.rb
CHANGED
data/lib/lono/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
template "api-web
|
1
|
+
template "api-web" do
|
2
2
|
source "web"
|
3
3
|
variables(
|
4
4
|
ami: "ami-123",
|
@@ -16,7 +16,7 @@ template "api-web-prod" do
|
|
16
16
|
)
|
17
17
|
end
|
18
18
|
|
19
|
-
template "api-worker
|
19
|
+
template "api-worker" do
|
20
20
|
source "web"
|
21
21
|
variables(
|
22
22
|
ami: "ami-123",
|
@@ -35,7 +35,7 @@ template "api-worker-prod" do
|
|
35
35
|
)
|
36
36
|
end
|
37
37
|
|
38
|
-
template "api-redis
|
38
|
+
template "api-redis" do
|
39
39
|
source "db"
|
40
40
|
variables(
|
41
41
|
ami: "ami-456",
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
template "example"
|
2
2
|
|
3
|
-
template "api-web
|
3
|
+
template "api-web" do
|
4
4
|
source "web"
|
5
5
|
variables(
|
6
6
|
instance_type: "t2.small",
|
@@ -17,7 +17,7 @@ template "api-web-prod" do
|
|
17
17
|
)
|
18
18
|
end
|
19
19
|
|
20
|
-
template "api-worker
|
20
|
+
template "api-worker" do
|
21
21
|
source "web"
|
22
22
|
variables(
|
23
23
|
instance_type: "t2.small",
|
@@ -35,7 +35,7 @@ template "api-worker-prod" do
|
|
35
35
|
)
|
36
36
|
end
|
37
37
|
|
38
|
-
template "api-redis
|
38
|
+
template "api-redis" do
|
39
39
|
source "db"
|
40
40
|
variables(
|
41
41
|
instance_type: "t2.small",
|
data/spec/lib/lono/new_spec.rb
CHANGED
@@ -25,7 +25,7 @@ describe Lono::New do
|
|
25
25
|
quiet: true
|
26
26
|
)
|
27
27
|
dsl.run
|
28
|
-
generated = File.exist?("#{@project_root}/output/blog-web
|
28
|
+
generated = File.exist?("#{@project_root}/output/blog-web.json")
|
29
29
|
expect(generated).to be true
|
30
30
|
end
|
31
31
|
end
|
@@ -47,7 +47,7 @@ describe Lono::New do
|
|
47
47
|
quiet: true
|
48
48
|
)
|
49
49
|
dsl.run
|
50
|
-
generated = File.exist?("#{@project_root}/output/blog-web
|
50
|
+
generated = File.exist?("#{@project_root}/output/blog-web.yml")
|
51
51
|
expect(generated).to be true
|
52
52
|
end
|
53
53
|
end
|
@@ -81,20 +81,20 @@ describe Lono::Template::DSL do
|
|
81
81
|
end
|
82
82
|
|
83
83
|
it "should generate cloudformation template" do
|
84
|
-
raw = IO.read("#{@project_root}/output/api-web
|
84
|
+
raw = IO.read("#{@project_root}/output/api-web.json")
|
85
85
|
json = JSON.load(raw)
|
86
86
|
expect(json['Description']).to eq "Api Stack"
|
87
87
|
expect(json['Mappings']['AWSRegionArch2AMI']['us-east-1']['64']).to eq 'ami-123'
|
88
88
|
end
|
89
89
|
|
90
90
|
it "should make trailing options pass to the partial helper available as instance variables" do
|
91
|
-
raw = IO.read("#{@project_root}/output/api-web
|
91
|
+
raw = IO.read("#{@project_root}/output/api-web.json")
|
92
92
|
json = JSON.load(raw)
|
93
93
|
expect(json['Resources']['HostRecord']['Properties']['Comment']).to eq 'DNS name for mydomain.com'
|
94
94
|
end
|
95
95
|
|
96
96
|
it "should generate user data with variables" do
|
97
|
-
raw = IO.read("#{@project_root}/output/api-redis
|
97
|
+
raw = IO.read("#{@project_root}/output/api-redis.json")
|
98
98
|
json = JSON.load(raw)
|
99
99
|
expect(json['Description']).to eq "Api redis"
|
100
100
|
user_data = json['Resources']['server']['Properties']['UserData']['Fn::Base64']['Fn::Join'][1]
|
@@ -102,7 +102,7 @@ describe Lono::Template::DSL do
|
|
102
102
|
end
|
103
103
|
|
104
104
|
it "should include multiple user_data scripts" do
|
105
|
-
raw = IO.read("#{@project_root}/output/api-redis
|
105
|
+
raw = IO.read("#{@project_root}/output/api-redis.json")
|
106
106
|
json = JSON.load(raw)
|
107
107
|
expect(json['Description']).to eq "Api redis"
|
108
108
|
user_data = json['Resources']['server']['Properties']['UserData']['Fn::Base64']['Fn::Join'][1]
|
@@ -110,7 +110,7 @@ describe Lono::Template::DSL do
|
|
110
110
|
end
|
111
111
|
|
112
112
|
it "should generate db template" do
|
113
|
-
raw = IO.read("#{@project_root}/output/api-redis
|
113
|
+
raw = IO.read("#{@project_root}/output/api-redis.json")
|
114
114
|
json = JSON.load(raw)
|
115
115
|
expect(json['Description']).to eq "Api redis"
|
116
116
|
user_data = json['Resources']['server']['Properties']['UserData']['Fn::Base64']['Fn::Join'][1]
|
@@ -161,7 +161,7 @@ describe Lono::Template::DSL do
|
|
161
161
|
end
|
162
162
|
|
163
163
|
it "should not transform user_data ruby scripts" do
|
164
|
-
raw = IO.read("#{@project_root}/output/api-worker
|
164
|
+
raw = IO.read("#{@project_root}/output/api-worker.json")
|
165
165
|
json = JSON.load(raw)
|
166
166
|
user_data = json['Resources']['LaunchConfig']['Properties']['UserData']['Fn::Base64']['Fn::Join'][1]
|
167
167
|
expect(user_data).to include(%Q|ec2.tags.create(ec2.instances[my_instance_id], "Name", {value: Facter.hostname})\n|)
|
@@ -174,7 +174,7 @@ describe Lono::Template::DSL do
|
|
174
174
|
end
|
175
175
|
|
176
176
|
it "task should generate CloudFormation templates" do
|
177
|
-
raw = IO.read("#{@project_root}/output/api-web
|
177
|
+
raw = IO.read("#{@project_root}/output/api-web.json")
|
178
178
|
json = JSON.load(raw)
|
179
179
|
expect(json['Description']).to eq "Api Stack"
|
180
180
|
expect(json['Mappings']['AWSRegionArch2AMI']['us-east-1']['64']).to eq 'ami-123'
|
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.3.
|
4
|
+
version: 3.3.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-09-
|
11
|
+
date: 2017-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -301,7 +301,7 @@ files:
|
|
301
301
|
- lib/starter_projects/json_project/Guardfile
|
302
302
|
- lib/starter_projects/json_project/config/templates/base/blog.rb
|
303
303
|
- lib/starter_projects/json_project/config/templates/base/stacks.rb
|
304
|
-
- lib/starter_projects/json_project/params/api-web
|
304
|
+
- lib/starter_projects/json_project/params/base/api-web.txt
|
305
305
|
- lib/starter_projects/json_project/templates/db.json
|
306
306
|
- lib/starter_projects/json_project/templates/partial/host_record.json
|
307
307
|
- lib/starter_projects/json_project/templates/partial/server.json
|