vagrant-dotvm 0.24.0 → 0.25.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/vagrant-dotvm/config/machine.rb +0 -1
- data/lib/vagrant-dotvm/config/root.rb +19 -0
- data/lib/vagrant-dotvm/configinjecter.rb +11 -2
- data/lib/vagrant-dotvm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 667d0dce371ea12db6bd6c8954ae29300bbdadaa
|
4
|
+
data.tar.gz: 22afb804a131c0759d0980a7b211bec543eee6da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbfd7301f49c8371f0bcb91c88806ea05382cda1b0605ac4c0fc7f267d74e032b6a0715d78811b6c6f4cdd2dffbabd5609c6ee8c5893cc560aed60c5e795b7f7
|
7
|
+
data.tar.gz: 27d143751fe453535985fef8d6dccd4211a03f6b5a42f35ec6c1232a30c7b3ca590afc6b90418b09dbb74223148adfbe5242d015b0d29397ea3184ffb1c7a0ee
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# 0.25.0
|
2
|
+
* Ability to set global options for ssh
|
3
|
+
* Ability to set global options for winrm
|
4
|
+
* Ability to set global options for vagrant
|
5
|
+
* Don't set X11 forwarding by default, now it's controlled via option
|
6
|
+
|
1
7
|
# 0.24.0
|
2
8
|
* Fix for autostart/primary options incorrectly passed to Vagrant
|
3
9
|
|
@@ -3,9 +3,15 @@ module VagrantPlugins
|
|
3
3
|
module Config
|
4
4
|
class Root < AbstractConfig
|
5
5
|
attr_reader :machines
|
6
|
+
attr_reader :options
|
6
7
|
|
7
8
|
def initialize()
|
8
9
|
@machines = []
|
10
|
+
@options = {
|
11
|
+
:ssh => [],
|
12
|
+
:winrm => [],
|
13
|
+
:vagrant => [],
|
14
|
+
}
|
9
15
|
end
|
10
16
|
|
11
17
|
def populate_machines(data)
|
@@ -15,6 +21,19 @@ module VagrantPlugins
|
|
15
21
|
@machines << machine
|
16
22
|
end
|
17
23
|
end
|
24
|
+
|
25
|
+
def populate_options(data)
|
26
|
+
data.to_h.each do |key, confs|
|
27
|
+
key = key.to_sym
|
28
|
+
raise "Invalid options category: #{key}." unless @options.has_key?(key)
|
29
|
+
|
30
|
+
confs.to_a.each do |conf|
|
31
|
+
item = Option.new
|
32
|
+
item.populate conf
|
33
|
+
@options[key] << item
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
18
37
|
end
|
19
38
|
end
|
20
39
|
end
|
@@ -4,8 +4,17 @@ module VagrantPlugins
|
|
4
4
|
|
5
5
|
public
|
6
6
|
def self.inject(config, vc)
|
7
|
-
|
8
|
-
|
7
|
+
config.options[:ssh].each do |option|
|
8
|
+
vc.ssh.send("#{option.name}=", option.value)
|
9
|
+
end
|
10
|
+
|
11
|
+
config.options[:winrm].each do |option|
|
12
|
+
vc.winrm.send("#{option.name}=", option.value)
|
13
|
+
end
|
14
|
+
|
15
|
+
config.options[:vagrant].each do |option|
|
16
|
+
vc.vagrant.send("#{option.name}=", option.value)
|
17
|
+
end
|
9
18
|
|
10
19
|
config.machines.each do |machine_cfg|
|
11
20
|
define_opts = {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-dotvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Magosa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|