cloud_info 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -1
- data/gemspec.rb +1 -1
- data/lib/cloud_info/instances.rb +2 -2
- data/lib/cloud_info.rb +0 -2
- metadata +2 -2
data/Rakefile
CHANGED
data/gemspec.rb
CHANGED
data/lib/cloud_info/instances.rb
CHANGED
@@ -100,10 +100,10 @@ class CloudInfo
|
|
100
100
|
h["#{env_name}_app#{counters[:app] += 1}"] = host
|
101
101
|
when "util"
|
102
102
|
if node["name"] =~ /util/
|
103
|
-
h["#{env_name}
|
103
|
+
h["#{env_name}_#{node["name"]}"] = host
|
104
104
|
counters[:util] += 1
|
105
105
|
elsif
|
106
|
-
h["#{env_name}
|
106
|
+
h["#{env_name}_#{node["name"]}"] = host
|
107
107
|
counters[:memcached] += 1
|
108
108
|
end
|
109
109
|
when "db_master"
|
data/lib/cloud_info.rb
CHANGED
@@ -14,7 +14,6 @@ class CloudInfo
|
|
14
14
|
# if a cache exist it uses it instead of finding the servers
|
15
15
|
def hosts(use_cache = true)
|
16
16
|
# check yaml file first
|
17
|
-
puts "tung : #{@cache_path.inspect}"
|
18
17
|
if use_cache and File.exist?(@cache_path)
|
19
18
|
@hosts = (CloudInfo.read_yaml(@cache_path) || {})[env_name]
|
20
19
|
end
|
@@ -31,7 +30,6 @@ class CloudInfo
|
|
31
30
|
all_hosts[env_name] = @hosts
|
32
31
|
CloudInfo.write_yaml(@cache_path, all_hosts)
|
33
32
|
end
|
34
|
-
pp @hosts
|
35
33
|
@hosts
|
36
34
|
end
|
37
35
|
|