cloud_info 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ ---
2
+ prod_br:
3
+ prod_br_app0: 184.73.240.218
4
+ prod_br_util0: ec2-174-129-69-169.compute-1.amazonaws.com
5
+ prod_br_memcached0: ec2-204-236-244-26.compute-1.amazonaws.com
6
+ prod_br_util1: ec2-174-129-111-60.compute-1.amazonaws.com
7
+ prod_br_memcached1: ec2-184-73-18-219.compute-1.amazonaws.com
8
+ prod_br_app1: ec2-174-129-55-203.compute-1.amazonaws.com
9
+ prod_br_app2: ec2-75-101-183-44.compute-1.amazonaws.com
10
+ prod_br_app3: ec2-184-73-5-255.compute-1.amazonaws.com
11
+ prod_br_db0: ec2-174-129-47-164.compute-1.amazonaws.com
12
+ prod_br_db1: ec2-72-44-44-156.compute-1.amazonaws.com
data/gemspec.rb CHANGED
@@ -16,5 +16,5 @@ GEM_SPEC = Gem::Specification.new do |s|
16
16
  s.name = GEM_NAME
17
17
  s.platform = Gem::Platform::RUBY
18
18
  s.require_path = "lib"
19
- s.version = "0.1.3"
19
+ s.version = "0.1.4"
20
20
  end
@@ -36,9 +36,13 @@ class CloudInfo
36
36
  # only the instances for the env
37
37
  def instances
38
38
  instance_ids = ey_instances(@cloud_info.env_name)
39
- group_id = aws_group_for_instance_id(instance_ids.first)
40
- instances = instances_in_group(group_id)
41
- instances
39
+ if instance_ids.empty?
40
+ instances = []
41
+ else
42
+ group_id = aws_group_for_instance_id(instance_ids.first)
43
+ instances = instances_in_group(group_id)
44
+ instances
45
+ end
42
46
  end
43
47
 
44
48
  def connect_to_servers
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tung Nguyen
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-07 00:00:00 -08:00
17
+ date: 2010-03-08 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -69,6 +69,7 @@ extra_rdoc_files:
69
69
  - README.markdown
70
70
  files:
71
71
  - bin/cloud_info
72
+ - config/cloud_info.yml
72
73
  - gemspec.rb
73
74
  - lib/cloud_info/instances.rb
74
75
  - lib/cloud_info.rb