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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/lono/cfn.rb +1 -0
- data/lib/lono/cfn/base.rb +13 -0
- data/lib/lono/cfn/create.rb +1 -0
- data/lib/lono/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91c4368a7041abb9f6fe3d5e7b0eac3f6eae829b1a6945b920e3c1218fc82d9f
|
4
|
+
data.tar.gz: 99a9dd76894952b54df9f3a96694506edf1865c8b24c89c8480cf1e0deb483c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e1635d50b6caee0619be6adeb60b0d3705d764de85b5f274d17b7ea8b4693b9faac40141f396d5fd1b4956119e364270c340c152a4b67c20e85b8818b9ee4c7
|
7
|
+
data.tar.gz: 56f9cc31183531d339fdb4c5769e4b968404202174d1f323197ea3e548379c6542569e1edfb463b7c597aa3de8e46434e66abe60a66bc6dd3a62c40f104efe2f
|
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
|
+
## [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
|
|
data/lib/lono/cfn.rb
CHANGED
@@ -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
|
data/lib/lono/cfn/base.rb
CHANGED
@@ -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?
|
data/lib/lono/cfn/create.rb
CHANGED
data/lib/lono/version.rb
CHANGED
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.
|
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-
|
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
|
-
|
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
|