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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b2d67a85fee4daded65c65028dbd094486a0101
4
- data.tar.gz: e33e494d68616a33ec6f784bf661f1f339a3f6f5
3
+ metadata.gz: 33b8dfbe5abe4a50a57843163b7d7d63c93fafe0
4
+ data.tar.gz: d6683b919f81a8c5e0ec8c9e20ae600fadbe5d63
5
5
  SHA512:
6
- metadata.gz: cbc8ef84810384771bb86715934b8acdbffa4f4705ffbb1efda5e3c543e16c9d68e5b71d2dc97009e29f2c6f50fbbb7cf1984258d9ac557b1f35f4b73b6e54f8
7
- data.tar.gz: ac729217bb028c95417e42beb3009d12ee807a07b3f49da4e0468328bcdf08262b8f84652da78069d3e35b5c79a1103f06610770abd834c2127f20b168491ab6
6
+ metadata.gz: a920f6e638ac50cd6ddefbb90b37211f6750d15d78cadab935ee8f5c959ce57c542022610a5dfd7a44dfd2a232d3f6da72c51d5ce73a51beb8ed3e2f0429903f
7
+ data.tar.gz: 923d74376b825621cfd5c4a3c5a368f495cf99cca8be3a854065edbc5b54713a0b1eabd0cced82e80930dc38d51bfa66d44a30657f82b5bebf51d310bf7204fd
@@ -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
@@ -72,9 +72,9 @@ EOL
72
72
  <<-EOL
73
73
  Examples:
74
74
 
75
- $ lono inspect params my-stack
76
-
77
75
  $ lono inspect depends my-stack
76
+
77
+ $ lono inspect summary my-stack
78
78
  EOL
79
79
  end
80
80
 
@@ -18,7 +18,7 @@ class Lono::Inspector < Lono::Command
18
18
  end
19
19
 
20
20
  desc "summary STACK", "Prints summary of CloudFormation template"
21
- long_desc Help.params
21
+ long_desc Help.summary
22
22
  def summary(name)
23
23
  Summary.new(name, options).run
24
24
  end
@@ -1,10 +1,10 @@
1
1
  class Lono::Inspector::Help
2
2
  class << self
3
- def params
3
+ def summary
4
4
  <<-EOL
5
5
  Example:
6
6
 
7
- $ lono inspect params my-stack
7
+ $ lono inspect summary my-stack
8
8
 
9
9
  EOL
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "3.3.0"
2
+ VERSION = "3.3.2"
3
3
  end
@@ -1,4 +1,4 @@
1
- template "blog-web-prod" do
1
+ template "blog-web" do
2
2
  app,role,env = name.split('-')
3
3
  source "web"
4
4
  variables(
@@ -1,4 +1,4 @@
1
- template "api-web-prod" do
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-prod" do
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-prod" do
38
+ template "api-redis" do
39
39
  source "db"
40
40
  variables(
41
41
  ami: "ami-456",
@@ -1,4 +1,4 @@
1
- template "blog-web-prod" do
1
+ template "blog-web" do
2
2
  app,role,env = name.split('-')
3
3
  source "web"
4
4
  variables(
@@ -1,6 +1,6 @@
1
1
  template "example"
2
2
 
3
- template "api-web-prod" do
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-prod" do
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-prod" do
38
+ template "api-redis" do
39
39
  source "db"
40
40
  variables(
41
41
  instance_type: "t2.small",
@@ -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-prod.json")
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-prod.yml")
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-prod.json")
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-prod.json")
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-prod.json")
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-prod.json")
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-prod.json")
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-prod.json")
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-prod.json")
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.0
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-20 00:00:00.000000000 Z
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-prod.txt
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