vagrant-dotvm 0.24.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 329d0a2a3dcbc737df5fd64651dee0edfa7784e6
4
- data.tar.gz: 9c0659b46f54dd94770bae0fe550c46ee57b1758
3
+ metadata.gz: 667d0dce371ea12db6bd6c8954ae29300bbdadaa
4
+ data.tar.gz: 22afb804a131c0759d0980a7b211bec543eee6da
5
5
  SHA512:
6
- metadata.gz: 938cb9479eb145b2159698545a8fa776c953263fda6d0ac8b680bdc47fda994f224a46e1eea0f7b9cf2b5c8a4e3d4f4c1e58a3a00cd29586e49acae49f300b12
7
- data.tar.gz: 28a4ab213f0ad04659cf7293f95179b9b551b7a62c0d89684e2b3cf7cea50555a8adfeb35a32e4eb595d9f6b3193ffbd697752f542168ab033d7dd3759d151c5
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
 
@@ -37,7 +37,6 @@ module VagrantPlugins
37
37
  attr_reader :usable_port_range
38
38
 
39
39
  def initialize()
40
- @primary = false
41
40
  @networks = []
42
41
  @routes = []
43
42
  @provision = []
@@ -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
- # General settings
8
- vc.ssh.forward_x11 = true
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 = {}
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Dotvm
3
- VERSION = "0.24.0"
3
+ VERSION = "0.25.0"
4
4
  end
5
5
  end
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.24.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-20 00:00:00.000000000 Z
11
+ date: 2015-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler