kumogata 0.1.0 → 0.1.1
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/kumogata.gemspec +1 -1
- data/lib/kumogata/client.rb +10 -2
- data/lib/kumogata/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 947bc579f201dfda38abb8996854b92fd80e558a
|
4
|
+
data.tar.gz: 97c93892827122b20a3cdb739842aeab9aef6934
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d791a48469552c5a5bde3dcf7cdb738ec86e484ae65cf713a81678e4e1a5cf2325c78ec678956da57550c3cf9ee2c4ad3e0391adaf2558f70ab13052b43b1cf
|
7
|
+
data.tar.gz: b2e53f42d81fded35dcb8b426ab93b725aa9059d22feba4789acc088062e42e031cbfb9c6713e0916ae58f05f99522648d942fb6c7b42717f2fb5c11f58c3a30
|
data/README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Kumogata is a tool for AWS CroudFormation.
|
4
4
|
|
5
|
-
[![Gem Version](https://badge.fury.io/rb/kumogata.png?
|
6
|
-
[![Build Status](https://drone.io/github.com/winebarrel/kumogata/status.png?
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/kumogata.png?201403022336)](http://badge.fury.io/rb/kumogata)
|
6
|
+
[![Build Status](https://drone.io/github.com/winebarrel/kumogata/status.png?201403022336)](https://drone.io/github.com/winebarrel/kumogata/latest)
|
7
7
|
|
8
8
|
It can define a template in Ruby DSL, such as:
|
9
9
|
|
data/kumogata.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_dependency 'aws-sdk'
|
22
|
-
spec.add_dependency 'dslh', '>= 0.2.
|
22
|
+
spec.add_dependency 'dslh', '>= 0.2.2'
|
23
23
|
spec.add_dependency 'hashie'
|
24
24
|
spec.add_dependency 'highline'
|
25
25
|
spec.add_dependency 'json'
|
data/lib/kumogata/client.rb
CHANGED
@@ -45,7 +45,7 @@ class Kumogata::Client
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def delete(stack_name)
|
48
|
-
if @options.force? or agree("
|
48
|
+
if @options.force? or agree("Are you sure you want to delete `#{stack_name}`? ".yellow)
|
49
49
|
delete_stack(stack_name)
|
50
50
|
end
|
51
51
|
|
@@ -119,7 +119,15 @@ class Kumogata::Client
|
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
122
|
-
|
122
|
+
value_conv = proc do |v|
|
123
|
+
if v.kind_of?(String) and v =~ /\A(?:0|[1-9]\d*)\Z/
|
124
|
+
v.to_i
|
125
|
+
else
|
126
|
+
v
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
Dslh.deval(template, :key_conv => key_conv, :value_conv => value_conv, :exclude_key => exclude_key)
|
123
131
|
end
|
124
132
|
|
125
133
|
def define_template_func(scope)
|
data/lib/kumogata/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.2.
|
33
|
+
version: 0.2.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.2.
|
40
|
+
version: 0.2.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: hashie
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|