lono 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/lono/template.rb +3 -1
- data/lib/lono/version.rb +1 -1
- data/lib/starter_project/templates/app.json.erb +4 -2
- data/lib/starter_project/templates/partial/server.json.erb +4 -1
- data/lib/starter_project/templates/user_data/db2.sh.erb +2 -0
- data/spec/lib/lono_spec.rb +8 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 718e48960a1c3a862ff214236f1ca2a41e086074
|
4
|
+
data.tar.gz: 3d88df2849d2d0c140e1484bfd441de14cf9c477
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 028ceea2ac8e288fe9fbd4c720edd7ab21852b368b3d4b27ce30d523c1aaaf08722ceae4e9d6161f15d7382e4044d739015be252663f5283b3315497da364783
|
7
|
+
data.tar.gz: a726a5be3d63491b8af498a626b5e4322c9cb2c1453535f9511a90b6bba1fdc89e30a4bd14a52d28751510a407c9138a2502ea5f3416c030e189af816bcfb7fc
|
data/README.md
CHANGED
data/lib/lono/template.rb
CHANGED
data/lib/lono/version.rb
CHANGED
data/spec/lib/lono_spec.rb
CHANGED
@@ -106,6 +106,14 @@ describe Lono do
|
|
106
106
|
user_data.should include("VARTEST=foo\n")
|
107
107
|
end
|
108
108
|
|
109
|
+
it "should include multiple user_data scripts" do
|
110
|
+
raw = IO.read("#{@project}/output/prod-api-redis.json")
|
111
|
+
json = JSON.load(raw)
|
112
|
+
json['Description'].should == "Api redis"
|
113
|
+
user_data = json['Resources']['server']['Properties']['UserData']['Fn::Base64']['Fn::Join'][1]
|
114
|
+
user_data.should include("DB2=test\n")
|
115
|
+
end
|
116
|
+
|
109
117
|
it "should generate db template" do
|
110
118
|
raw = IO.read("#{@project}/output/prod-api-redis.json")
|
111
119
|
json = JSON.load(raw)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lono
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
@@ -200,6 +200,7 @@ files:
|
|
200
200
|
- lib/starter_project/templates/partial/server.json.erb
|
201
201
|
- lib/starter_project/templates/user_data/app.sh.erb
|
202
202
|
- lib/starter_project/templates/user_data/db.sh.erb
|
203
|
+
- lib/starter_project/templates/user_data/db2.sh.erb
|
203
204
|
- lib/starter_project/templates/user_data/ruby_script.rb.erb
|
204
205
|
- lono.gemspec
|
205
206
|
- spec/fixtures/cfn.json
|