breeze 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/breeze.gemspec +1 -0
- data/lib/breeze.rb +1 -1
- data/lib/breeze/tasks/app.rb +3 -3
- data/lib/breeze/tasks/elb.rb +1 -1
- data/lib/templates/Thorfile +6 -2
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8cbe49dc7266d501871c867615883a26be88ae0b7e3214fb0ee69aae47b4cd20
|
4
|
+
data.tar.gz: 132fffc563849e62864d60bb9de2e7e13ecc24388bd9d723d330d63b794de50e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '092dfcc5be9dc5c4322cbd6f861df5f0e56036baa1414f5230d59cb4a6bf899539cea444154b7d169fece3c6324394de0c2bbf3d960fd0470f17dec6c7a7adbf'
|
7
|
+
data.tar.gz: b4064738219edfc60e5ee79822ac1722dcc6b983e396fdd35a0689f33f3b3adaa8e16862d727cd2fab87343e9727fb7912e8bc81e6fe193d4bad6ebf1130af9a
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5.1
|
data/breeze.gemspec
CHANGED
data/lib/breeze.rb
CHANGED
data/lib/breeze/tasks/app.rb
CHANGED
@@ -221,14 +221,14 @@ module Breeze
|
|
221
221
|
"sudo rm #{CONFIGURATION[:app_path]}/public/system/maintenance.html"
|
222
222
|
end
|
223
223
|
|
224
|
-
def db_endpoint(db_server_name)
|
225
|
-
db = rds.servers.get(db_server_name)
|
224
|
+
def db_endpoint(db_server_name, cluster: false)
|
225
|
+
db = (cluster ? rds.clusters : rds.servers).get(db_server_name)
|
226
226
|
return nil unless db
|
227
227
|
unless db.ready?
|
228
228
|
print('Waiting for the db')
|
229
229
|
wait_until { db.reload; db.ready? }
|
230
230
|
end
|
231
|
-
db.endpoint['Address']
|
231
|
+
db.endpoint.is_a?(String) ? db.endpoint : db.endpoint['Address']
|
232
232
|
end
|
233
233
|
|
234
234
|
def ip(server)
|
data/lib/breeze/tasks/elb.rb
CHANGED
@@ -6,7 +6,7 @@ module Breeze
|
|
6
6
|
method_options :dns_ttl => 60
|
7
7
|
def create(name, cname=nil, dns_zone_id=nil)
|
8
8
|
conf = CONFIGURATION[:elb]
|
9
|
-
response = elb.create_load_balancer(conf[:
|
9
|
+
response = elb.create_load_balancer(conf[:availability_zones], name, conf[:listeners], conf[:options])
|
10
10
|
if cname
|
11
11
|
thor("dns:record:create #{dns_zone_id} #{cname}. CNAME #{response.body['CreateLoadBalancerResult']['DNSName']} #{options[:dns_ttl]}")
|
12
12
|
end
|
data/lib/templates/Thorfile
CHANGED
@@ -68,9 +68,13 @@ Breeze::CONFIGURATION = {
|
|
68
68
|
|
69
69
|
# ELB configuration is required in order to use Amazon Elastic Load Balancing
|
70
70
|
:elb => {
|
71
|
+
:options => {
|
72
|
+
security_groups: [],
|
73
|
+
subnet_ids: []
|
74
|
+
}
|
71
75
|
:instances => [
|
72
|
-
{
|
73
|
-
{
|
76
|
+
{subnet_id: '', flavor_id: 't2.micro', count: 1},
|
77
|
+
{subnet_id: '', flavor_id: 't2.micro', count: 1}
|
74
78
|
],
|
75
79
|
:listeners => [{
|
76
80
|
'Protocol' => 'HTTP',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breeze
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Bengts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: cucumber
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
160
|
version: '0'
|
147
161
|
requirements: []
|
148
162
|
rubyforge_project: breeze
|
149
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.7.6
|
150
164
|
signing_key:
|
151
165
|
specification_version: 4
|
152
166
|
summary: Thor tasks to manage cloud computing resources and deployments
|