interferon 0.0.5 → 0.0.6
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.
@@ -4,11 +4,11 @@ module Interferon::HostSources
|
|
4
4
|
class AwsDynamo
|
5
5
|
def initialize(options)
|
6
6
|
missing = %w{access_key_id secret_access_key}.reject{|r| options.key?(r)}
|
7
|
-
raise ArgumentError, "missing these required arguments for source AwsDynamo: #{missing.inspect}"\
|
8
|
-
unless missing.empty?
|
9
7
|
|
10
|
-
|
11
|
-
|
8
|
+
AWS.config({
|
9
|
+
:access_key_id => options['access_key_id'],
|
10
|
+
:secret_access_key => options['secret_access_key']
|
11
|
+
}) if missing.empty?
|
12
12
|
|
13
13
|
# initialize a list of regions to check
|
14
14
|
if options['regions'] && !options['regions'].empty?
|
@@ -22,10 +22,7 @@ module Interferon::HostSources
|
|
22
22
|
hosts = []
|
23
23
|
|
24
24
|
@regions.each do |region|
|
25
|
-
client = AWS::DynamoDB.new(
|
26
|
-
:access_key_id => @access_key_id,
|
27
|
-
:secret_access_key => @secret_access_key,
|
28
|
-
:region => region)
|
25
|
+
client = AWS::DynamoDB.new(:region => region)
|
29
26
|
|
30
27
|
AWS.memoize do
|
31
28
|
client.tables.each do |table|
|
@@ -4,11 +4,11 @@ module Interferon::HostSources
|
|
4
4
|
class AwsElasticache
|
5
5
|
def initialize(options)
|
6
6
|
missing = %w{access_key_id secret_access_key}.reject{|r| options.key?(r)}
|
7
|
-
raise ArgumentError, "missing these required arguments for source AwsElasticache: #{missing.inspect}"\
|
8
|
-
unless missing.empty?
|
9
7
|
|
10
|
-
|
11
|
-
|
8
|
+
AWS.config({
|
9
|
+
:access_key_id => options['access_key_id'],
|
10
|
+
:secret_access_key => options['secret_access_key']
|
11
|
+
}) if missing.empty?
|
12
12
|
|
13
13
|
# initialize a list of regions to check
|
14
14
|
if options['regions'] && !options['regions'].empty?
|
@@ -23,10 +23,7 @@ module Interferon::HostSources
|
|
23
23
|
|
24
24
|
@regions.each do |region|
|
25
25
|
clusters = []
|
26
|
-
client = AWS::ElastiCache.new(
|
27
|
-
:access_key_id => @access_key_id,
|
28
|
-
:secret_access_key => @secret_access_key,
|
29
|
-
:region => region).client
|
26
|
+
client = AWS::ElastiCache.new(:region => region).client
|
30
27
|
|
31
28
|
AWS.memoize do
|
32
29
|
# read the list of cache clusters; we have to do our own pagination
|
@@ -4,11 +4,11 @@ module Interferon::HostSources
|
|
4
4
|
class AwsRds
|
5
5
|
def initialize(options)
|
6
6
|
missing = %w{access_key_id secret_access_key}.reject{|r| options.key?(r)}
|
7
|
-
raise ArgumentError, "missing these required arguments for source AwsRds: #{missing.inspect}"\
|
8
|
-
unless missing.empty?
|
9
7
|
|
10
|
-
|
11
|
-
|
8
|
+
AWS.config({
|
9
|
+
:access_key_id => options['access_key_id'],
|
10
|
+
:secret_access_key => options['secret_access_key']
|
11
|
+
}) if missing.empty?
|
12
12
|
|
13
13
|
# initialize a list of regions to check
|
14
14
|
if options['regions'] && !options['regions'].empty?
|
@@ -22,10 +22,7 @@ module Interferon::HostSources
|
|
22
22
|
hosts = []
|
23
23
|
|
24
24
|
@regions.each do |region|
|
25
|
-
rds = AWS::RDS.new(
|
26
|
-
:access_key_id => @access_key_id,
|
27
|
-
:secret_access_key => @secret_access_key,
|
28
|
-
:region => region)
|
25
|
+
rds = AWS::RDS.new(:region => region)
|
29
26
|
|
30
27
|
AWS.memoize do
|
31
28
|
rds.instances.each do |instance|
|
data/lib/interferon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: interferon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dogapi
|