kumogata 0.4.10 → 0.4.11
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 +4 -4
- data/README.md +9 -2
- data/lib/kumogata/argument_parser.rb +24 -24
- data/lib/kumogata/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7537f25fa6ed9e22a4c12d03cac0a00ec783801e
|
4
|
+
data.tar.gz: e325a318da75a8be3ef42a8ef89353c71bf95291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1802d2a36f631d1130b2e8471e12ead569363ffee7dfa99c41b23b45c6affc15dfca2c3ab0385a661fab81778df147356533440e9504d568a79964cc69a368a2
|
7
|
+
data.tar.gz: 03203252527136f4626c658550ab5f3775e0db76ffe80455b721ccd399fd77cf5adb4554652f3ce7b3af9fffa32729ea4205279d1ff0b14ed3a7c2cf5e86958c
|
data/README.md
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
|
6
6
|
Kumogata is a tool for [AWS CloudFormation](https://aws.amazon.com/cloudformation/).
|
7
7
|
|
8
|
-
[](http://badge.fury.io/rb/kumogata)
|
9
|
+
[](https://drone.io/github.com/winebarrel/kumogata/latest)
|
10
10
|
|
11
11
|
It can define a template in Ruby DSL, such as:
|
12
12
|
|
@@ -85,6 +85,7 @@ Options:
|
|
85
85
|
--config PATH
|
86
86
|
--profile CONFIG_PROFILE
|
87
87
|
--format TMPLATE_FORMAT
|
88
|
+
--output-format FORMAT
|
88
89
|
--skip-replace-underscore
|
89
90
|
--deletion-policy-retain
|
90
91
|
-p, --parameters KEY_VALUES
|
@@ -339,6 +340,8 @@ Status: 0
|
|
339
340
|
|
340
341
|
## YAML template
|
341
342
|
|
343
|
+
You can also use the template YAML instead of JSON and Ruby.
|
344
|
+
|
342
345
|
```yaml
|
343
346
|
---
|
344
347
|
Resources:
|
@@ -377,6 +380,10 @@ Outputs:
|
|
377
380
|
# }
|
378
381
|
```
|
379
382
|
|
383
|
+
### Convert JSON template to YAML
|
384
|
+
|
385
|
+
$ kumogata convert Drupal_Single_Instance.template --output-format=yaml
|
386
|
+
|
380
387
|
## Demo
|
381
388
|
|
382
389
|
* Create resources
|
@@ -82,30 +82,30 @@ class Kumogata::ArgumentParser
|
|
82
82
|
|
83
83
|
begin
|
84
84
|
supported_formats = [:ruby, :json, :yaml]
|
85
|
-
opt.on('-k', '--access-key ACCESS_KEY')
|
86
|
-
opt.on('-s', '--secret-key SECRET_KEY')
|
87
|
-
opt.on('-r', '--region REGION')
|
88
|
-
opt.on('' , '--config PATH')
|
89
|
-
opt.on('' , '--profile CONFIG_PROFILE')
|
90
|
-
opt.on('' , '--format TMPLATE_FORMAT', supported_formats)
|
91
|
-
opt.on('' , '--output-format
|
92
|
-
opt.on('' , '--skip-replace-underscore')
|
93
|
-
opt.on('' , '--deletion-policy-retain')
|
94
|
-
opt.on('-p', '--parameters KEY_VALUES', Array)
|
95
|
-
opt.on('-e', '--encrypt-parameters KEYS', Array)
|
96
|
-
opt.on('', '--encryption-password PASS')
|
97
|
-
opt.on('', '--skip-send-password')
|
98
|
-
opt.on('' , '--capabilities CAPABILITIES', Array)
|
99
|
-
opt.on('' , '--disable-rollback')
|
100
|
-
opt.on('' , '--notify SNS_TOPICS', Array)
|
101
|
-
opt.on('' , '--timeout MINUTES', Integer)
|
102
|
-
opt.on('' , '--result-log PATH')
|
103
|
-
opt.on('' , '--command-result-log PATH')
|
104
|
-
opt.on('' , '--force')
|
105
|
-
opt.on('-w', '--ignore-all-space')
|
106
|
-
opt.on('' , '--color')
|
107
|
-
opt.on('' , '--no-color')
|
108
|
-
opt.on('' , '--debug')
|
85
|
+
opt.on('-k', '--access-key ACCESS_KEY') {|v| options[:access_key_id] = v }
|
86
|
+
opt.on('-s', '--secret-key SECRET_KEY') {|v| options[:secret_access_key] = v }
|
87
|
+
opt.on('-r', '--region REGION') {|v| options[:region] = v }
|
88
|
+
opt.on('' , '--config PATH') {|v| options[:config_path] = v }
|
89
|
+
opt.on('' , '--profile CONFIG_PROFILE') {|v| options[:config_profile] = v }
|
90
|
+
opt.on('' , '--format TMPLATE_FORMAT', supported_formats) {|v| options[:format] = v }
|
91
|
+
opt.on('' , '--output-format FORMAT', supported_formats) {|v| options[:output_format] = v }
|
92
|
+
opt.on('' , '--skip-replace-underscore') { options[:skip_replace_underscore] = false }
|
93
|
+
opt.on('' , '--deletion-policy-retain') { options[:deletion_policy_retain] = true }
|
94
|
+
opt.on('-p', '--parameters KEY_VALUES', Array) {|v| options[:parameters] = v }
|
95
|
+
opt.on('-e', '--encrypt-parameters KEYS', Array) {|v| options[:encrypt_parameters] = v }
|
96
|
+
opt.on('', '--encryption-password PASS') {|v| options[:encryption_password] = v }
|
97
|
+
opt.on('', '--skip-send-password') { options[:skip_send_password] = true }
|
98
|
+
opt.on('' , '--capabilities CAPABILITIES', Array) {|v| options[:capabilities] = v }
|
99
|
+
opt.on('' , '--disable-rollback') { options[:disable_rollback] = true }
|
100
|
+
opt.on('' , '--notify SNS_TOPICS', Array) {|v| options[:notify] = v }
|
101
|
+
opt.on('' , '--timeout MINUTES', Integer) {|v| options[:timeout] = v }
|
102
|
+
opt.on('' , '--result-log PATH') {|v| options[:result_log] = v }
|
103
|
+
opt.on('' , '--command-result-log PATH') {|v| options[:command] = v }
|
104
|
+
opt.on('' , '--force') { options[:force] = true }
|
105
|
+
opt.on('-w', '--ignore-all-space') { options[:ignore_all_space] = true }
|
106
|
+
opt.on('' , '--color') { options[:color] = true }
|
107
|
+
opt.on('' , '--no-color') { options[:color] = false }
|
108
|
+
opt.on('' , '--debug') { options[:debug] = true }
|
109
109
|
opt.parse!
|
110
110
|
|
111
111
|
unless (command = ARGV.shift)
|
data/lib/kumogata/version.rb
CHANGED