momo 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +2 -2
- data/lib/momo/cfl.rb +1 -0
- data/lib/momo/stack.rb +4 -0
- data/lib/momo/version.rb +1 -1
- data/lib/momo.rb +5 -23
- data/momo.gemspec +1 -0
- metadata +22 -38
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 909f4bb52b8192f0ebcc1d9c651dc4e22ae486bb
|
4
|
+
data.tar.gz: 1e72616baa27c57981839f37183b3f08c2ed13dd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0b5f955c4028d405d118b79a63c9321f6062bad89f32338ffd730808d15c653dca91009584c67cad0a2649ba1809bb5dc33754fbc1d4fb40fc021ff1738f1981
|
7
|
+
data.tar.gz: 48992dc0002007bb083bac5c68c8789fa17ad2339ec8bb6ba864daccfb7b5095ad26ce90064bfea611f55b23dc79f4e6930683d2d4e1fadb16d2cd139e3b64bf
|
data/README.md
CHANGED
@@ -27,7 +27,7 @@ Here's a basic way of using momo
|
|
27
27
|
```ruby
|
28
28
|
require 'momo'
|
29
29
|
|
30
|
-
template = cfl do
|
30
|
+
template = Momo::cfl do
|
31
31
|
# Make a VPC
|
32
32
|
vpc = make "AWS::EC2::VPC" do
|
33
33
|
CidrBlock "10.0.0.0/16"
|
@@ -45,7 +45,7 @@ puts template.templatize()
|
|
45
45
|
|
46
46
|
## Contributing
|
47
47
|
|
48
|
-
1. Fork it ( https://github.com/
|
48
|
+
1. Fork it ( https://github.com/davidsiaw/momo/fork )
|
49
49
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
50
50
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
51
51
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/momo/cfl.rb
CHANGED
data/lib/momo/stack.rb
CHANGED
data/lib/momo/version.rb
CHANGED
data/lib/momo.rb
CHANGED
@@ -14,28 +14,10 @@ require 'momo/mapping'
|
|
14
14
|
require 'momo/stack'
|
15
15
|
|
16
16
|
|
17
|
-
|
18
|
-
Momo::CFL.new(&block)
|
19
|
-
end
|
20
|
-
|
21
|
-
def checkcfl(profile, region, template)
|
22
|
-
|
23
|
-
cf = Aws::CloudFormation::Client.new(
|
24
|
-
region: region,
|
25
|
-
profile: profile)
|
26
|
-
|
27
|
-
cf.validate_template(template_body: template)
|
28
|
-
end
|
29
|
-
|
30
|
-
def runcfl(profile, region, name, template)
|
31
|
-
|
32
|
-
cf = Aws::CloudFormation::Client.new(
|
33
|
-
region: region,
|
34
|
-
profile: profile)
|
35
|
-
|
36
|
-
cf.create_stack(
|
37
|
-
stack_name: name,
|
38
|
-
template_body: template)
|
39
|
-
end
|
17
|
+
module Momo
|
40
18
|
|
19
|
+
def self.cfl(&block)
|
20
|
+
Momo::CFL.new(&block)
|
21
|
+
end
|
41
22
|
|
23
|
+
end
|
data/momo.gemspec
CHANGED
metadata
CHANGED
@@ -1,126 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: momo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- David Siaw
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activesupport
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: aws-sdk-core
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: json
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: trollop
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: bundler
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- - ~>
|
73
|
+
- - "~>"
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '1.6'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- - ~>
|
80
|
+
- - "~>"
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '1.6'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: rake
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - ">="
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - ">="
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: rspec
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- -
|
101
|
+
- - ">="
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: '0'
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
|
-
- -
|
108
|
+
- - ">="
|
124
109
|
- !ruby/object:Gem::Version
|
125
110
|
version: '0'
|
126
111
|
description: Deploys Cloud Servers
|
@@ -131,7 +116,7 @@ executables:
|
|
131
116
|
extensions: []
|
132
117
|
extra_rdoc_files: []
|
133
118
|
files:
|
134
|
-
- .gitignore
|
119
|
+
- ".gitignore"
|
135
120
|
- Gemfile
|
136
121
|
- LICENSE.txt
|
137
122
|
- README.md
|
@@ -154,27 +139,26 @@ files:
|
|
154
139
|
homepage: ''
|
155
140
|
licenses:
|
156
141
|
- MIT
|
142
|
+
metadata: {}
|
157
143
|
post_install_message:
|
158
144
|
rdoc_options: []
|
159
145
|
require_paths:
|
160
146
|
- lib
|
161
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
162
|
-
none: false
|
163
148
|
requirements:
|
164
|
-
- -
|
149
|
+
- - ">="
|
165
150
|
- !ruby/object:Gem::Version
|
166
151
|
version: '0'
|
167
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
|
-
none: false
|
169
153
|
requirements:
|
170
|
-
- -
|
154
|
+
- - ">="
|
171
155
|
- !ruby/object:Gem::Version
|
172
156
|
version: '0'
|
173
157
|
requirements: []
|
174
158
|
rubyforge_project:
|
175
|
-
rubygems_version:
|
159
|
+
rubygems_version: 2.4.6
|
176
160
|
signing_key:
|
177
|
-
specification_version:
|
161
|
+
specification_version: 4
|
178
162
|
summary: Mobingi Deployment System
|
179
163
|
test_files:
|
180
164
|
- spec/momo_config_spec.rb
|