cloud_info 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/gemspec.rb +1 -1
  2. data/lib/cloud_info.rb +2 -1
  3. metadata +3 -3
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.4"
19
+ s.version = "0.1.5"
20
20
  end
data/lib/cloud_info.rb CHANGED
@@ -12,7 +12,8 @@ class CloudInfo
12
12
  end
13
13
 
14
14
  # if a cache exist it uses it instead of finding the servers
15
- def hosts(use_cache = false)
15
+ def hosts
16
+ use_cache = @options[:use_cache]
16
17
  # check yaml file first
17
18
  if use_cache and File.exist?(@cache_path)
18
19
  @hosts = (CloudInfo.read_yaml(@cache_path) || {})[env_name]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
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-08 00:00:00 -08:00
17
+ date: 2010-03-11 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency