lono 4.2.5 → 4.2.6

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
  SHA256:
3
- metadata.gz: 3ecbb81a1de6ff6dd2943f60b25d1f4ebc7b3030a4faac11ff767da8a15bf14b
4
- data.tar.gz: 94fe82c593537d7f7168144c4a4f76ce7ba143b75fc321cef3c14da5d05bc3e9
3
+ metadata.gz: 91c4368a7041abb9f6fe3d5e7b0eac3f6eae829b1a6945b920e3c1218fc82d9f
4
+ data.tar.gz: 99a9dd76894952b54df9f3a96694506edf1865c8b24c89c8480cf1e0deb483c9
5
5
  SHA512:
6
- metadata.gz: d8a5dc575759fc1a88f2bb50404f234cdb74ccc862e588e23e170e886c340a38c4092b54fdc9ca6c17fa09a75f8db0136cce426afd9c9d7afc7692f36792a4bc
7
- data.tar.gz: 8534f43632d384578a4d1ab8bb5e0da71a34c3885d1692ceb1c5d7693602f5a9e0539f7a8eb8230d0eed6eedb0e25719a4c67c3866b1c090a28bc495caac3608
6
+ metadata.gz: 1e1635d50b6caee0619be6adeb60b0d3705d764de85b5f274d17b7ea8b4693b9faac40141f396d5fd1b4956119e364270c340c152a4b67c20e85b8818b9ee4c7
7
+ data.tar.gz: 56f9cc31183531d339fdb4c5769e4b968404202174d1f323197ea3e548379c6542569e1edfb463b7c597aa3de8e46434e66abe60a66bc6dd3a62c40f104efe2f
@@ -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
+ ## [4.2.6]
7
+ - #40 lono cfn create --tags a:1 b:2 option
8
+
6
9
  ## [4.2.5]
7
10
  - use rainbow gem for terminal colors
8
11
 
@@ -25,6 +25,7 @@ class Lono::Cfn < Lono::Command
25
25
  option :capabilities, type: :array, desc: "iam capabilities. Ex: CAPABILITY_IAM, CAPABILITY_NAMED_IAM"
26
26
  option :iam, type: :boolean, desc: "Shortcut for common IAM capabilities: CAPABILITY_IAM, CAPABILITY_NAMED_IAM"
27
27
  option :rollback, type: :boolean, desc: "rollback", default: true
28
+ option :tags, type: :hash, desc: "Tags for the stack. IE: name:api-web owner:bob"
28
29
  end
29
30
  wait_option = Proc.new do
30
31
  option :wait, type: :boolean, desc: "Wait for stack operation to complete.", default: true
@@ -115,6 +115,19 @@ class Lono::Cfn::Base
115
115
  generator.params # Returns Array in underscore keys format
116
116
  end
117
117
 
118
+ def tags
119
+ # Map to CloudFormation format. Example:
120
+ #
121
+ # {"a"=>"1", "b"=>"2"}
122
+ # To
123
+ # [{key: "a", value: "1"}, {key: "b", value: "2"}]
124
+ #
125
+ tags = @options[:tags] || []
126
+ tags.map do |k,v|
127
+ { key: k, value: v }
128
+ end
129
+ end
130
+
118
131
  def check_for_errors
119
132
  errors, warns = check_files
120
133
  unless errors.empty?
@@ -29,6 +29,7 @@ class Lono::Cfn::Create < Lono::Cfn::Base
29
29
  parameters: params,
30
30
  capabilities: capabilities, # ["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM"]
31
31
  disable_rollback: !@options[:rollback],
32
+ tags: tags,
32
33
  }
33
34
  set_template_body!(params)
34
35
 
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "4.2.5"
2
+ VERSION = "4.2.6"
3
3
  end
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: 4.2.5
4
+ version: 4.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-25 00:00:00.000000000 Z
11
+ date: 2019-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -472,8 +472,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
472
472
  - !ruby/object:Gem::Version
473
473
  version: '0'
474
474
  requirements: []
475
- rubyforge_project:
476
- rubygems_version: 2.7.6
475
+ rubygems_version: 3.0.2
477
476
  signing_key:
478
477
  specification_version: 4
479
478
  summary: Lono is a CloudFormation Framework Tool