sumomo 0.6.1 → 0.6.2
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 +21 -1
- data/data/sumomo/custom_resources/OriginAccessIdentity.js +2 -1
- data/lib/sumomo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e84c0fec840014d49e5cf67d7a3bcb1886c6a9d2
|
4
|
+
data.tar.gz: 4da738f7000edf523f7e054eeccf505b756563f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dffae49afed2bc7868ea0616a1aa053293d42c31a47cd53795f284ff140bd167b210f3e07c5bb24c25a9c6275ff653a1d528fd5610b66ac0f8c33ee8488d4ba5
|
7
|
+
data.tar.gz: 8d7b8e26b90f74dce32e6614af5c282aa79c3e0b94f994e3bc612e269c1799a870fd86282bdc2e0fa65b4ee9184781b02fb8a8f02b57ba9a65fc8c1d1ed30a32
|
data/README.md
CHANGED
@@ -72,12 +72,32 @@ Sumomo::wait_for_stack(name: "mystack", region: "ap-northeast-1")
|
|
72
72
|
```
|
73
73
|
|
74
74
|
## Features
|
75
|
+
You can make a server
|
76
|
+
|
77
|
+
```ruby
|
78
|
+
network = make_network(layers: [:web, :db])
|
79
|
+
|
80
|
+
eip = make "AWS::EC2::EIP"
|
81
|
+
|
82
|
+
make_autoscaling_group(
|
83
|
+
network: network,
|
84
|
+
layers: :web,
|
85
|
+
eip: eip,
|
86
|
+
type: "c3.xlarge",
|
87
|
+
vol_size: 15, # GB,
|
88
|
+
script: <<-SCRIPT
|
89
|
+
yum install git gcc g++
|
90
|
+
echo "hello world" >> ~/hello
|
91
|
+
SCRIPT
|
92
|
+
)
|
93
|
+
|
94
|
+
```
|
75
95
|
|
76
96
|
You can make apis with this now
|
77
97
|
|
78
98
|
```ruby
|
79
99
|
|
80
|
-
api = make_api "test2.
|
100
|
+
api = make_api "test2.astrobunny.net",
|
81
101
|
name: "TestGenAPI",
|
82
102
|
cert: certificate,
|
83
103
|
dns: cloudflare_dns(key: key, email: email) do
|
@@ -90,6 +90,7 @@ if (request.RequestType == "Delete")
|
|
90
90
|
{
|
91
91
|
var params = {
|
92
92
|
Id: data.CloudFrontOriginAccessIdentity.Id,
|
93
|
+
IfMatch: data.ETag
|
93
94
|
};
|
94
95
|
cloudfront.deleteCloudFrontOriginAccessIdentity(params, function(err, data) {
|
95
96
|
if (err)
|
@@ -99,7 +100,7 @@ if (request.RequestType == "Delete")
|
|
99
100
|
}
|
100
101
|
else
|
101
102
|
{
|
102
|
-
Cloudformation.send(request, context, Cloudformation.SUCCESS, {}, "Success", "" );
|
103
|
+
Cloudformation.send(request, context, Cloudformation.SUCCESS, {}, "Success", "0" );
|
103
104
|
}
|
104
105
|
});
|
105
106
|
|
data/lib/sumomo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sumomo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Siaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|