aws-cache 0.0.08 → 0.0.09

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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZDUxM2E4MTcyYTE3NTQyNGFiNjg4ZGM3YTM0NDlhZmIyMDE4OWE0NA==
5
- data.tar.gz: !binary |-
6
- ZDYwNzZmNTdkYzZlNTYyMDI0ZDUzNjUyZTMyMTgwNTg2NDZjYzZmMA==
2
+ SHA1:
3
+ metadata.gz: 0193293e5f591d8bd2dde800a0506967de79a54b
4
+ data.tar.gz: db79cb14c8c6644c8c9d1ba9937953f8defa44ec
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NjE5MzQ2Zjc5ZThlMTg5OTAzMDJjNTA4YTczNGQ5MGQ4ZDkwMzZkODA4NmRk
10
- OWRmMDE0YWMzYmRiNWEzZjRiZjhhOGIwNGU4ZmVkY2NlODVkMGE2NzBiZTUx
11
- MzliYjYwMjIxYzNjN2IxNmZiNzg5NDM5MzliZDVmZmNmMzA0Yjk=
12
- data.tar.gz: !binary |-
13
- ZmM4MzczZTdkMTVlNjczYzJlM2Y3YTU0NGZhODFlNDgyMWM0OWM2Y2M1ZWRk
14
- ZjI1Y2M0NzFmZTM1NGQyZGMwNTVlODcwMDc0OWY5M2EzZDhmNmNjYWRjZTQy
15
- OGMwNzYwZGEzYTA4YjEwNTRhMGZjMDJiNmZhMmExZDk3NzRhZjk=
6
+ metadata.gz: 8fd5816357f989d8a0321fd2887b0a3abad2fe7b0ae792be45881371450ab50231d62f19c420cfb2fa9de25d47f3031a9845eb1ec112809c12b8ebedda0b4ad2
7
+ data.tar.gz: bd3be258ad61fd3d104c515a173c1b54dd398929914ad90bfe3ac6e9aaf7c87a8bc83bf7b9f2a788c36750419a1cf30d069cca155746e2cc4662f03a49bd06b2
@@ -1,4 +1,4 @@
1
1
  module AwsCacheVersion
2
2
  # Please follow semantic versioning (semver.org).
3
- VERSION = '0.0.08'
3
+ VERSION = '0.0.09'
4
4
  end
data/lib/aws-cache.rb CHANGED
@@ -21,6 +21,16 @@ class AwsCache
21
21
  @region = optional_element(opts, ['region'], 'us-east-1')
22
22
  end
23
23
 
24
+ def describe_instance( instance_id)
25
+ instances = self.describe_instances()
26
+ instances.each do |instance|
27
+ if instance[:instances][0][:instance_id] == instance_id then
28
+ return instance[:instances][0]
29
+ end
30
+ end
31
+ return nil
32
+ end
33
+
24
34
  def stack_auto_scaling_groups(stack_name)
25
35
  autoscaling_groups = Array.new()
26
36
  output = self.list_stack_resources(stack_name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.08
4
+ version: 0.0.09
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen J. Smith
@@ -9,34 +9,34 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-25 00:00:00.000000000 Z
12
+ date: 2015-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: redis
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ! '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  description: You know, to avoid api throttling errors.
@@ -57,12 +57,12 @@ require_paths:
57
57
  - lib
58
58
  required_ruby_version: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ! '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ! '>='
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  requirements: []