elbas 3.0.0 → 3.0.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 -0
- data/lib/elbas/aws/ami.rb +1 -1
- data/lib/elbas/aws/instance.rb +7 -2
- data/lib/elbas/logger.rb +1 -1
- data/lib/elbas/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e544ce8dcc90dbf23bf58733836d3681fc98527ffd04f6cae4c32751f41b74e5
|
4
|
+
data.tar.gz: bfcbcf9b0a0dbe759d7f89c68d1242ea86ee807675df9666555dd532956d638e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02a53a716c4477f34e29b08f90f4b98529b618ff1d186441bcc89e0ef413f738449e943c90dda0422924e7b01fcdb119ede5b1c0f26a5cf088bd2ce82584dda9
|
7
|
+
data.tar.gz: e297a71c2aeb28c9019d8e022befe28cbd9a727ef21346292631a3cba2531e2b6d2314cdb4b6bbcea4aa4d70aba64537032c94af812cd2d4190498e7e619a94f
|
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
# Capistrano ELBAS (Elastic Load Balancer & AutoScaling)
|
4
4
|
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/elbas.svg)](https://badge.fury.io/rb/elbas)
|
6
|
+
|
5
7
|
ELBAS was written to ease the deployment of Rails applications to AWS AutoScale
|
6
8
|
groups. During your Capistrano deployment, ELBAS will:
|
7
9
|
|
data/lib/elbas/aws/ami.rb
CHANGED
@@ -10,7 +10,7 @@ module Elbas
|
|
10
10
|
|
11
11
|
def initialize(id, snapshots = [])
|
12
12
|
@id = id
|
13
|
-
@aws_counterpart = ::Aws::EC2::Image.new id
|
13
|
+
@aws_counterpart = ::Aws::EC2::Image.new id, client: aws_client
|
14
14
|
|
15
15
|
@snapshots = snapshots.map do |snapshot|
|
16
16
|
Elbas::AWS::Snapshot.new snapshot&.ebs&.snapshot_id
|
data/lib/elbas/aws/instance.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Elbas
|
2
2
|
module AWS
|
3
|
-
class Instance
|
3
|
+
class Instance < Base
|
4
4
|
STATE_RUNNING = 16.freeze
|
5
5
|
|
6
6
|
attr_reader :aws_counterpart, :id, :state
|
@@ -9,7 +9,7 @@ module Elbas
|
|
9
9
|
@id = id
|
10
10
|
@public_dns = public_dns
|
11
11
|
@state = state
|
12
|
-
@aws_counterpart = ::
|
12
|
+
@aws_counterpart = aws_namespace::Instance.new id, client: aws_client
|
13
13
|
end
|
14
14
|
|
15
15
|
def hostname
|
@@ -19,6 +19,11 @@ module Elbas
|
|
19
19
|
def running?
|
20
20
|
state == STATE_RUNNING
|
21
21
|
end
|
22
|
+
|
23
|
+
private
|
24
|
+
def aws_namespace
|
25
|
+
::Aws::EC2
|
26
|
+
end
|
22
27
|
end
|
23
28
|
end
|
24
29
|
end
|
data/lib/elbas/logger.rb
CHANGED
data/lib/elbas/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elbas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logan Serman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|