vagrant-rubydns 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore
CHANGED
data/test/test_helper.rb
CHANGED
@@ -12,6 +12,11 @@ MiniTest::Unit.after_tests { VagrantRubydns::Store.clear! }
|
|
12
12
|
|
13
13
|
require 'minitest/autorun'
|
14
14
|
|
15
|
+
def fake_environment(extras={})
|
16
|
+
env = Vagrant::Environment.new
|
17
|
+
{ ui: FakeUI, global_config: env.config_global }.merge(extras)
|
18
|
+
end
|
19
|
+
|
15
20
|
def fake_environment_with_machine(hostname, ip)
|
16
21
|
provider_cls = Class.new do
|
17
22
|
def initialize(machine)
|
@@ -34,5 +39,5 @@ def fake_environment_with_machine(hostname, ip)
|
|
34
39
|
machine.config.vm.hostname = hostname
|
35
40
|
machine.config.vm.network :private_network, ip: ip
|
36
41
|
|
37
|
-
{ machine: machine, ui: FakeUI }
|
42
|
+
{ machine: machine, ui: FakeUI, global_config: env.config_global }
|
38
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-rubydns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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-03-
|
12
|
+
date: 2013-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubydns
|