kumogata 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/bin/kumogata +1 -1
- data/lib/kumogata/argument_parser.rb +1 -1
- data/lib/kumogata/client.rb +10 -1
- 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: b1646d7c3f03a1b105c5a5bc6ca27a69d88ce7a0
|
4
|
+
data.tar.gz: 9de11baa1375551eaf9458b6d88bf73aed447210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5aecb29d489251c22ece46f7460ae4405bc589dd363ae89b4e8be3b3652f978919a82b885d2363787caa2b7e1b2eb914a804665cff673cb9ddbdfd7523f09ac
|
7
|
+
data.tar.gz: 54724f7d9f9af6067f59c4e1e2ee7a51dd198a98a5b9b9ad5dc6380657584378bbca1f550ab34182fe650c4a273d71cb9f6ba4eeb7b46c4366d73e79fd211e9e
|
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?
|
9
|
-
[![Build Status](https://drone.io/github.com/winebarrel/kumogata/status.png?
|
8
|
+
[![Gem Version](https://badge.fury.io/rb/kumogata.png?201403151812)](http://badge.fury.io/rb/kumogata)
|
9
|
+
[![Build Status](https://drone.io/github.com/winebarrel/kumogata/status.png?201403151812)](https://drone.io/github.com/winebarrel/kumogata/latest)
|
10
10
|
|
11
11
|
It can define a template in Ruby DSL, such as:
|
12
12
|
|
data/bin/kumogata
CHANGED
@@ -56,7 +56,7 @@ class Kumogata::ArgumentParser
|
|
56
56
|
:arguments => [:stack_name],
|
57
57
|
},
|
58
58
|
:diff => {
|
59
|
-
:description => 'Compare templates logically',
|
59
|
+
:description => 'Compare templates logically (file, http://..., stack://...)',
|
60
60
|
:arguments => [:path_or_url1, :path_or_url2],
|
61
61
|
},
|
62
62
|
}
|
data/lib/kumogata/client.rb
CHANGED
@@ -98,7 +98,16 @@ class Kumogata::Client
|
|
98
98
|
|
99
99
|
def diff(path_or_url1, path_or_url2)
|
100
100
|
templates = [path_or_url1, path_or_url2].map do |path_or_url|
|
101
|
-
template =
|
101
|
+
template = nil
|
102
|
+
|
103
|
+
if path_or_url =~ %r|\Astack://(.*)|
|
104
|
+
stack_name = $1 || ''
|
105
|
+
validate_stack_name(stack_name)
|
106
|
+
template = export_template(stack_name)
|
107
|
+
else
|
108
|
+
template = open_template(path_or_url)
|
109
|
+
end
|
110
|
+
|
102
111
|
JSON.pretty_generate(template)
|
103
112
|
end
|
104
113
|
|
data/lib/kumogata/version.rb
CHANGED