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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 001b685faad190688be4ec49c511781a58129cd94800172575d0a8d739755837
4
- data.tar.gz: a7fa9684df82682256c2629bc294260d3aa6b6426663b17534613c26263bb782
3
+ metadata.gz: e544ce8dcc90dbf23bf58733836d3681fc98527ffd04f6cae4c32751f41b74e5
4
+ data.tar.gz: bfcbcf9b0a0dbe759d7f89c68d1242ea86ee807675df9666555dd532956d638e
5
5
  SHA512:
6
- metadata.gz: 3a5b2534c8f036a8f3044beb836d2c33b0bf74f092b28fc3f71ce7e129b3c586f6cad1594e41f84ed68d93de4f0c4270b34ef530e11aa8b1583e1af8a9ed947d
7
- data.tar.gz: d9a71090a1a53139e2cbf80c3b8fff0a27e91f28640f649793d3f48c35d5d581e5e0a828bb90999cb9cabbc3703b738b515ce1e4774dee286ca4b9a6c5b62e36
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
 
@@ -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
@@ -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 = ::Aws::EC2::Instance.new id
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
@@ -9,7 +9,7 @@ module Elbas
9
9
  end
10
10
 
11
11
  def prefix
12
- @prefix ||= color.colorize("\n[ELBAS] ", :cyan)
12
+ @prefix ||= color.colorize("[ELBAS] ", :cyan)
13
13
  end
14
14
  end
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module Elbas
2
- VERSION = '3.0.0'.freeze
2
+ VERSION = '3.0.1'.freeze
3
3
  end
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.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-18 00:00:00.000000000 Z
11
+ date: 2019-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler