vagrantup 1.1.1 → 1.1.2

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: e5706bfea6f6e245dad4f0d14273def52e00968e
4
- data.tar.gz: dc4d88b8301f749d5ca14848ff4b5614648552c2
3
+ metadata.gz: af927382eaead2363e3871f7aaf0320a518fadb0
4
+ data.tar.gz: a682a141ebf2c1a9103845c5a42b61c12cb1cdce
5
5
  SHA512:
6
- metadata.gz: b53c3f4a8bf846a9e975f86b0026f0819b78fda92e8a3edee4c36f5089c3efa66db3df8728652aa643589cae89bafbfb20f6006c84f33bae95f7e45c8b8798c6
7
- data.tar.gz: 1aa2d1992525b8a01deeb7ba6ce94e9b378ba0ab5d01c3c282cfe6c367286886d8cab61830e6621dcec0d34e2ceea9c757be55b163d67a36ce5a37a975663d8a
6
+ metadata.gz: 8fde20ba01e9cd1e2d4786efd0f79495dd86182ec8f9c6596ea326f1dd3fd8044ec86e88419a663fe334074011125269df11261622b11fc91cbe8d4ba3d06e3c
7
+ data.tar.gz: bb7f3ee7e718ce7feb1b12004cf7a753ea2563615d7fa8bed174ee1c0cee656eae99a7f35cdadb78770528d62960c1ab63ea93496fda9dc7f6690c9d370ae1f8
@@ -1,3 +1,13 @@
1
+ ## 1.1.2 (March 18, 2013)
2
+
3
+ BUG FIXES:
4
+
5
+ - When not specifying a cookbooks_path for chef-solo, an error won't
6
+ be shown if "cookbooks" folder is missing.
7
+ - Fix typo for exception when no host-only network with NFS. [GH-1448]
8
+ - Use UNSET_VALUE/nil with args on shell provisioner by default since
9
+ `[]` was too truthy. [GH-1447]
10
+
1
11
  ## 1.1.1 (March 18, 2013)
2
12
 
3
13
  IMPROVEMENTS:
@@ -2,5 +2,5 @@ module Vagrant
2
2
  # This will always be up to date with the current version of Vagrant,
3
3
  # since it is used to generate the gemspec and is also the source of
4
4
  # the version for `vagrant -v`
5
- VERSION = "1.1.1"
5
+ VERSION = "1.1.2"
6
6
  end
@@ -10,10 +10,21 @@ module VagrantPlugins
10
10
  def call(env)
11
11
  @app.call(env)
12
12
 
13
- env[:nfs_host_ip] = read_host_ip(env[:machine])
14
- env[:nfs_machine_ip] = read_machine_ip(env[:machine])
13
+ using_nfs = false
14
+ env[:machine].config.vm.synced_folders.each do |id, opts|
15
+ if opts[:nfs]
16
+ using_nfs = true
17
+ break
18
+ end
19
+ end
15
20
 
16
- raise Errors::NFSNoHostonlyNetwork if !env[:nfs_machine_ip]
21
+ if using_nfs
22
+ @logger.info("Using NFS, preparing NFS settings by reading host IP and machine IP")
23
+ env[:nfs_host_ip] = read_host_ip(env[:machine])
24
+ env[:nfs_machine_ip] = read_machine_ip(env[:machine])
25
+
26
+ raise Vagrant::Errors::NFSNoHostonlyNetwork if !env[:nfs_machine_ip]
27
+ end
17
28
  end
18
29
 
19
30
  # Returns the IP address of the first host only network adapter
@@ -22,11 +22,14 @@ module VagrantPlugins
22
22
  @encrypted_data_bag_secret = UNSET_VALUE
23
23
  @encrypted_data_bag_secret_key_path = UNSET_VALUE
24
24
  @nfs = UNSET_VALUE
25
+
26
+ @__defaulted_cookbooks_path = false
25
27
  end
26
28
 
27
29
  def finalize!
28
30
  if @cookbooks_path == UNSET_VALUE
29
31
  @cookbooks_path = [[:host, "cookbooks"], [:vm, "cookbooks"]]
32
+ @__defaulted_cookbooks_path = true
30
33
  end
31
34
 
32
35
  @data_bags_path = [] if @data_bags_path == UNSET_VALUE
@@ -52,13 +55,15 @@ module VagrantPlugins
52
55
  errors << I18n.t("vagrant.config.chef.run_list_empty") if \
53
56
  !run_list || run_list.empty?
54
57
 
55
- @cookbooks_path.each do |type, path|
56
- next if type != :host
57
- expanded_path = File.expand_path(path, machine.env.root_path)
58
+ if !@__defaulted_cookbooks_path
59
+ @cookbooks_path.each do |type, path|
60
+ next if type != :host
61
+ expanded_path = File.expand_path(path, machine.env.root_path)
58
62
 
59
- if !File.exist?(expanded_path)
60
- errors << I18n.t("vagrant.config.chef.cookbooks_path_missing",
61
- :path => expanded_path)
63
+ if !File.exist?(expanded_path)
64
+ errors << I18n.t("vagrant.config.chef.cookbooks_path_missing",
65
+ :path => expanded_path)
66
+ end
62
67
  end
63
68
  end
64
69
 
@@ -7,13 +7,14 @@ module VagrantPlugins
7
7
  attr_accessor :args
8
8
 
9
9
  def initialize
10
- @args = []
10
+ @args = UNSET_VALUE
11
11
  @inline = UNSET_VALUE
12
12
  @path = UNSET_VALUE
13
13
  @upload_path = UNSET_VALUE
14
14
  end
15
15
 
16
16
  def finalize!
17
+ @args = nil if @args == UNSET_VALUE
17
18
  @inline = nil if @inline == UNSET_VALUE
18
19
  @path = nil if @path == UNSET_VALUE
19
20
  @upload_path = "/tmp/vagrant-shell" if @upload_path == UNSET_VALUE
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrantup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hashimoto