landrush 0.6.0 → 0.7.0

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.
@@ -23,7 +23,7 @@ module Landrush
23
23
  when :virtualbox then
24
24
  '10.0.2.2'
25
25
  when :vmware_fusion then
26
- _gateway_for_ip(@machine.guest.capability(:configured_dns_server))
26
+ _gateway_for_ip(machine.guest.capability(:configured_dns_server))
27
27
  end
28
28
  end
29
29
 
@@ -40,9 +40,9 @@ module Landrush
40
40
  end
41
41
 
42
42
  def setup_static_dns
43
- global_config.landrush.hosts.each do |hostname, ip_address|
44
- info "adding static entry: #{hostname} => #{ip_address}"
45
- Store.hosts.set hostname, ip_address
43
+ global_config.landrush.hosts.each do |hostname, dns_value|
44
+ info "adding static entry: #{hostname} => #{dns_value}"
45
+ Store.hosts.set hostname, dns_value
46
46
  end
47
47
  end
48
48
 
@@ -27,7 +27,15 @@ module Landrush
27
27
  end
28
28
 
29
29
  def get(key)
30
- current_config[key]
30
+ value = current_config[key]
31
+ redirect = find(value)
32
+ if value
33
+ if redirect
34
+ get(redirect)
35
+ else
36
+ value
37
+ end
38
+ end
31
39
  end
32
40
 
33
41
  def clear!
@@ -1,3 +1,3 @@
1
1
  module Landrush
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: landrush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
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: 2013-10-30 00:00:00.000000000 Z
12
+ date: 2013-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubydns
@@ -135,18 +135,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
135
  - - ! '>='
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
- segments:
139
- - 0
140
- hash: 901975285541024268
141
138
  required_rubygems_version: !ruby/object:Gem::Requirement
142
139
  none: false
143
140
  requirements:
144
141
  - - ! '>='
145
142
  - !ruby/object:Gem::Version
146
143
  version: '0'
147
- segments:
148
- - 0
149
- hash: 901975285541024268
150
144
  requirements: []
151
145
  rubyforge_project:
152
146
  rubygems_version: 1.8.23
@@ -166,3 +160,4 @@ test_files:
166
160
  - test/support/fake_working_dir.rb
167
161
  - test/support/test_server_daemon.rb
168
162
  - test/test_helper.rb
163
+ has_rdoc: