lono 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 037410b99dc66db7c6b454b44cf5c358586186ca
4
- data.tar.gz: cc6cff0b954f29d3ecad2987c4f83d402ab6e143
3
+ metadata.gz: f64a82534c16f965a4cb5b2be3bc01953f5a0a2f
4
+ data.tar.gz: f2e544a39fed155de259bad986710c7f6ab904b7
5
5
  SHA512:
6
- metadata.gz: 23273b352a57b3953fcc857d8eaabd54a61d7915821319f741ff666bd23545f0284368be0d5e37e7e6255789545405343597240e0d2e5f79af120814549eb7e0
7
- data.tar.gz: 3484ec7691010bf887d23cd5a596b922f3a23a7d87113aa28ec969d5aaf1315b9b10c056325a13fa7453bc13fc128626eee0be7cfb68c8a972f0d3b9dfd3c484
6
+ metadata.gz: 62ee14f8560a00fd19bb15647ce4cf7b9e945877df19f04d1e62ff919366d1f15b49bb50e73b426cd9d5feef02f90797c3b278df4cd183a7013891e608ba54b4
7
+ data.tar.gz: 602efa8bd2060f3779e5c218e2e72e4871dcf9df5fee2157a30af5ddf4330fe32500787fdbda7b34dff36e4d62c968403ba71aef2aef66f60702514878e62824
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
+ ## [2.0.3]
7
+ - fix param generation with cfn preview when stack name is different from param name
8
+
6
9
  ## [2.0.2]
7
10
  - fix starter project param files
8
11
 
data/lib/lono/cfn/base.rb CHANGED
@@ -10,10 +10,10 @@ class Lono::Cfn::Base
10
10
  @project_root = options[:project_root] || '.'
11
11
  Lono::ProjectChecker.check(@project_root) unless options[:lono] # already ran checker in lono generate
12
12
 
13
- template_name = options[:template] || @stack_name
14
- param_name = options[:param] || template_name
15
- @template_path = get_source_path(template_name, :template)
16
- @param_path = get_source_path(param_name, :param)
13
+ @template_name = options[:template] || @stack_name
14
+ @param_name = options[:param] || @template_name
15
+ @template_path = get_source_path(@template_name, :template)
16
+ @param_path = get_source_path(@param_name, :param)
17
17
  puts "Using template: #{@template_path}" unless @options[:mute_using]
18
18
  puts "Using parameters: #{@param_path}" unless @options[:mute_using]
19
19
  end
@@ -42,7 +42,7 @@ class Lono::Cfn::Base
42
42
  path: @param_path,
43
43
  allow_no_file: true
44
44
  }.merge(options)
45
- generator = Lono::Param::Generator.new(@stack_name, generator_options)
45
+ generator = Lono::Param::Generator.new(@param_name, generator_options)
46
46
  generator.generate # Writes the json file in CamelCase keys format
47
47
  generator.params # Returns Array in underscore keys format
48
48
  end
data/lib/lono/cfn/util.rb CHANGED
@@ -7,7 +7,7 @@ module Lono::Cfn::Util
7
7
  when :update
8
8
  "Are you sure you want to want to update the stack with the changes? (y/N)"
9
9
  when :delete
10
- "Are you sure you want to want to delete the stack with the changes? (y/N)"
10
+ "Are you sure you want to want to delete the stack? (y/N)"
11
11
  end
12
12
  puts message
13
13
  sure = $stdin.gets
data/lib/lono/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
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: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen