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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6798b24b8bfe85192d54fbb5433737c03265191b
4
- data.tar.gz: 63dbd0ccd0856dd8354ce843d1b02ca17a69e039
3
+ metadata.gz: 7537f25fa6ed9e22a4c12d03cac0a00ec783801e
4
+ data.tar.gz: e325a318da75a8be3ef42a8ef89353c71bf95291
5
5
  SHA512:
6
- metadata.gz: efd7342e7234b10fee55e612138df45583ae6f2abd9d980eaf9bc50cf57518d69721ee733de392dd702598079b5cdcb7f4026906b5ec125e21a9439c14ea535c
7
- data.tar.gz: 3bd3310aa41fbd02d5800cb0066bc9a9c4ec9560f1618323725c756d3527ce30e0def5d13e04bee829c8844c304bb2e21084b13670caa8f9847874bed68ad812
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
- [![Gem Version](https://badge.fury.io/rb/kumogata.png?201404180339)](http://badge.fury.io/rb/kumogata)
9
- [![Build Status](https://drone.io/github.com/winebarrel/kumogata/status.png?201404180339)](https://drone.io/github.com/winebarrel/kumogata/latest)
8
+ [![Gem Version](https://badge.fury.io/rb/kumogata.png?201404191738)](http://badge.fury.io/rb/kumogata)
9
+ [![Build Status](https://drone.io/github.com/winebarrel/kumogata/status.png?201404191738)](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') {|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 OUTPUT_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 }
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)
@@ -1,3 +1,3 @@
1
1
  module Kumogata
2
- VERSION = '0.4.10'
2
+ VERSION = '0.4.11'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumogata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.10
4
+ version: 0.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara