lono 4.0.5 → 4.0.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 +4 -0
- data/lib/lono/cli.rb +1 -1
- data/lib/lono/command.rb +7 -1
- data/lib/lono/help/generate.md +1 -1
- data/lib/lono/help/import.md +2 -2
- data/lib/lono/help/new.md +1 -1
- data/lib/lono/help/param/generate.md +1 -1
- data/lib/lono/help/script/upload.md +1 -1
- data/lib/lono/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f63015f7f02dd2c10b5a5fdb6e1ee6b39dbba2a76e72fd2dbffa60fa2a8361e
|
4
|
+
data.tar.gz: 72f5b4c8b8adfb43a52e9b10bc3786a103c8494bf05a2c16302cb3211c03a728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75d69ff2904e89e0983876bd5210c29a163a91d92262555910b8db803a4a9530a97487abf97841516f62319c2b175991dfe856f6a9218267442392796d0bf1ce
|
7
|
+
data.tar.gz: 3897781b6b686829406821477af5e5bc0ef8e48fa16ec73337020ab96f5ea534f21c1a88c25487847352ec396301f64a61bc3f28f6b5b192ba806886f10ebbac
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
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.0.6]
|
7
|
+
- Update cli docs: generate, import, new, upload
|
8
|
+
- fix thor description override when command not found
|
9
|
+
|
6
10
|
## [4.0.5]
|
7
11
|
- update lono cfn diff docs
|
8
12
|
|
data/lib/lono/cli.rb
CHANGED
@@ -5,7 +5,7 @@ module Lono
|
|
5
5
|
New.cli_options.each do |args|
|
6
6
|
option *args
|
7
7
|
end
|
8
|
-
register(New, "new", "new NAME", "
|
8
|
+
register(New, "new", "new NAME", "Generates new lono project.")
|
9
9
|
|
10
10
|
desc "import SOURCE", "Imports CloudFormation template and lono-fies it."
|
11
11
|
long_desc Help.text(:import)
|
data/lib/lono/command.rb
CHANGED
@@ -48,14 +48,20 @@ module Lono
|
|
48
48
|
def command_help(shell, command_name)
|
49
49
|
meth = normalize_command_name(command_name)
|
50
50
|
command = all_commands[meth]
|
51
|
+
alter_command_description(command)
|
52
|
+
super
|
53
|
+
end
|
54
|
+
|
55
|
+
def alter_command_description(command)
|
56
|
+
return unless command
|
51
57
|
long_desc = if command.long_description
|
52
58
|
"#{command.description}\n\n#{command.long_description}"
|
53
59
|
else
|
54
60
|
command.description
|
55
61
|
end
|
56
62
|
command.long_description = long_desc
|
57
|
-
super
|
58
63
|
end
|
64
|
+
private :alter_command_description
|
59
65
|
end
|
60
66
|
end
|
61
67
|
end
|
data/lib/lono/help/generate.md
CHANGED
data/lib/lono/help/import.md
CHANGED
@@ -46,9 +46,9 @@ lono import https://s3.amazonaws.com/cloudformation-templates-us-east-1/EC2Insta
|
|
46
46
|
|
47
47
|
The default is dasherize.
|
48
48
|
|
49
|
-
Question: You might be wondering, why does lono import
|
49
|
+
Question: You might be wondering, why does lono import uses dasherize vs underscore?
|
50
50
|
|
51
|
-
Answer: I prefer filenames to be
|
51
|
+
Answer: I prefer filenames to be underscored. However, CloudFormation stack names do not allow underscores in their naming, so it is encourage to either dasherize or camelize your template names so the stack name and the template name can be the same.
|
52
52
|
|
53
53
|
This blog post [Introducing the lono import Command](https://blog.boltops.com/2017/09/15/introducing-the-lono-import-command) also covers `lono import`.
|
54
54
|
|
data/lib/lono/help/new.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
TEMPLATE=ec2 lono new infra # creates a single server
|
5
5
|
TEMPLATE=autoscaling lono new infra
|
6
6
|
|
7
|
-
List of the [starter templates
|
7
|
+
By default, `lono new` generates a skeleton project. Use `TEMPLATE` to generate different starter projects. List of the [starter templates](https://github.com/tongueroo/lono/tree/master/lib/starter_projects).
|
8
8
|
|
9
9
|
## Example Output
|
10
10
|
|
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.0.
|
4
|
+
version: 4.0.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: 2018-02-
|
11
|
+
date: 2018-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|