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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0700bdcae3cd19bf8920aeff10db9d3d4d5eaac6
4
- data.tar.gz: 4aea1e6bf9898e114c2ebb87cd74ba3e5e1e5a5f
2
+ SHA256:
3
+ metadata.gz: 8cbe49dc7266d501871c867615883a26be88ae0b7e3214fb0ee69aae47b4cd20
4
+ data.tar.gz: 132fffc563849e62864d60bb9de2e7e13ecc24388bd9d723d330d63b794de50e
5
5
  SHA512:
6
- metadata.gz: af99135461958862e35d01aa4966fe135ffbcbbc0ea7ff580aedab8016a65d1f3f9e153ca65879ccbac004fca704ca0a168a54440022b0eade90323cc38ef074
7
- data.tar.gz: ff9683ce457c7af33c036bbb4d29aadf64bc48ac7a2007dcf89e28369f6112995b2e308a42eadba25601fbc7589836198684af718f4a04539204e784c3867cbe
6
+ metadata.gz: '092dfcc5be9dc5c4322cbd6f861df5f0e56036baa1414f5230d59cb4a6bf899539cea444154b7d169fece3c6324394de0c2bbf3d960fd0470f17dec6c7a7adbf'
7
+ data.tar.gz: b4064738219edfc60e5ee79822ac1722dcc6b983e396fdd35a0689f33f3b3adaa8e16862d727cd2fab87343e9727fb7912e8bc81e6fe193d4bad6ebf1130af9a
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.5.1
@@ -25,6 +25,7 @@ END_DESCRIPTION
25
25
 
26
26
  s.add_dependency('thor')
27
27
  s.add_dependency('fog')
28
+ s.add_development_dependency "rake"
28
29
  s.add_development_dependency "cucumber"
29
30
  s.add_development_dependency "aruba"
30
31
  end
@@ -1,6 +1,6 @@
1
1
  module Breeze
2
2
 
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  autoload :Veur, 'breeze/veur'
5
5
 
6
6
  end
@@ -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)
@@ -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[:instances].map{ |i| i[:availability_zone] }.uniq, name, conf[:listeners])
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
@@ -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
- {availability_zone: 'us-east-1a', flavor_id: 't1.micro', count: 1},
73
- {availability_zone: 'us-east-1d', flavor_id: 't1.micro', count: 1}
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.2.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: 2014-03-22 00:00:00.000000000 Z
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.2.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