vagrantup 0.9.0 → 0.9.1

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: 2dcef6916402f3ffabcf961a01ff5ccf739e3598
4
- data.tar.gz: 53800395c7d04a4d3a914039ff5d71f956c20859
3
+ metadata.gz: 8a1ab63ade94fbaeef7d8c36c7344c54e53e30ad
4
+ data.tar.gz: c8b5017e6b7d55697bb967156ecc74b8cd0e76d0
5
5
  SHA512:
6
- metadata.gz: 52537409e5b638394d0d092e1086dc02fd3ee46245d1f1b61ce420252310209e33864c0f242c0a38adba50948d3f70f0b99486603bb41702ce1f498c337965b6
7
- data.tar.gz: 31b769e88900a22d8dbe4e7f84bdf4df09e1a7c3aaf88d5cde2b7b0dff05eeb98e2be203a8bbaaa371cfa7d97de263487fe19a91369c44d97c22fd2329a4e513
6
+ metadata.gz: 06c4699c24af3f202c36fcbeb9830c21def65454b0be6b5d711426b752fc4594f10b5b4c14fe7fa74863e0359a07230b447b944197189307193e8037986d6106
7
+ data.tar.gz: a2e2670c55989a362a11967605e037542fb53b4e84b0a4dcedb7e656c825281448b6ae77e46168c0ad4c7c9b981edcea7eb09dad95992372edf543c53f19656f
@@ -1,3 +1,11 @@
1
+ ## 0.9.1 (January 18, 2012)
2
+
3
+ - Use `ifconfig device down` instead of `ifdown`. [GH-649]
4
+ - Clearer invalid log level error. [GH-645]
5
+ - Fix exception raised with NFS `recover` method.
6
+ - Fix `ui` `NoMethodError` exception in puppet server.
7
+ - Fix `vagrant box help` on Ruby 1.8.7. [GH-647]
8
+
1
9
  ## 0.9.0 (January 17, 2012)
2
10
 
3
11
  - VirtualBox 4.0 support backported in addition to supporting VirtualBox 4.1.
data/README.md CHANGED
@@ -10,7 +10,7 @@ Vagrant is a tool for building and distributing virtualized development environm
10
10
  By providing automated creation and provisioning of virtual machines using [Oracle’s VirtualBox](http://www.virtualbox.org),
11
11
  Vagrant provides the tools to create and configure lightweight, reproducible, and portable
12
12
  virtual environments. For more information, see the part of the getting started guide
13
- on “[Why Vagrant?](http://vagrantup.com/docs/getting-started/index.html)”
13
+ on “[Why Vagrant?](http://vagrantup.com/docs/getting-started/why.html)”
14
14
 
15
15
  ## Quick Start
16
16
 
@@ -14,7 +14,21 @@ if ENV["VAGRANT_LOG"] && ENV["VAGRANT_LOG"] != ""
14
14
  # This means that the logging constant wasn't found,
15
15
  # which is fine. We just keep `level` as `nil`. But
16
16
  # we tell the user.
17
+ level = nil
18
+ end
19
+
20
+ # Some constants, such as "true" resolve to booleans, so the
21
+ # above error checking doesn't catch it. This will check to make
22
+ # sure that the log level is an integer, as Log4r requires.
23
+ level = nil if !level.is_a?(Integer)
24
+
25
+ if !level
26
+ # We directly write to stderr here because the VagrantError system
27
+ # is not setup yet.
17
28
  $stderr.puts "Invalid VAGRANT_LOG level is set: #{ENV["VAGRANT_LOG"]}"
29
+ $stderr.puts ""
30
+ $stderr.puts "Please use one of the standard log levels: debug, info, warn, or error"
31
+ exit 1
18
32
  end
19
33
 
20
34
  # Set the logging level on all "vagrant" namespaced
@@ -36,15 +36,6 @@ module Vagrant
36
36
  mount_folders if !folders.empty?
37
37
  end
38
38
 
39
- def recover(env)
40
- # Ignore any VagrantErrors, because they were expected and
41
- # will cause the VM to stick around.
42
- return if env["vagrant.error"].is_a?(Errors::VagrantError)
43
-
44
- # Otherwise, clear the NFS exports.
45
- clear_nfs_exports(env)
46
- end
47
-
48
39
  # Returns the folders which are to be synced via NFS.
49
40
  def folders
50
41
  @folders ||= {}
@@ -41,7 +41,7 @@ module Vagrant
41
41
  # Add the available subcommands as separators in order to print them
42
42
  # out as well.
43
43
  keys = []
44
- @subcommands.each { |key, value| keys << key }
44
+ @subcommands.each { |key, value| keys << key.to_s }
45
45
 
46
46
  keys.sort.each do |key|
47
47
  opts.separator " #{key}"
@@ -38,7 +38,7 @@ module Vagrant
38
38
  # each specifically, we avoid reconfiguring eth0 (the NAT interface) so
39
39
  # SSH never dies.
40
40
  interfaces.each do |interface|
41
- vm.channel.sudo("/sbin/ifdown eth#{interface} 2> /dev/null")
41
+ vm.channel.sudo("/sbin/ifconfig eth#{interface} down 2> /dev/null")
42
42
  end
43
43
 
44
44
  vm.channel.sudo("cat /tmp/vagrant-network-entry >> /etc/network/interfaces")
@@ -50,7 +50,7 @@ module Vagrant
50
50
  end
51
51
 
52
52
  def change_host_name(name)
53
- if !vm.channel.test?("hostname --fqdn | grep '^#{name}$' || hostname --short | grep '^#{name}$'")
53
+ if !vm.channel.test("hostname --fqdn | grep '^#{name}$' || hostname --short | grep '^#{name}$'")
54
54
  vm.channel.sudo("sed -r -i 's/^(127[.]0[.]1[.]1[[:space:]]+).*$/\\1#{name} #{name.split('.')[0]}/' /etc/hosts")
55
55
  vm.channel.sudo("sed -i 's/.*$/#{name.split('.')[0]}/' /etc/hostname")
56
56
  vm.channel.sudo("hostname -F /etc/hostname")
@@ -39,7 +39,7 @@ module Vagrant
39
39
  # each specifically, we avoid reconfiguring eth0 (the NAT interface) so
40
40
  # SSH never dies.
41
41
  interfaces.each do |interface|
42
- vm.channel.sudo("/sbin/ifdown eth#{interface} 2> /dev/null")
42
+ vm.channel.sudo("/sbin/ifconfig eth#{interface} down 2> /dev/null")
43
43
  vm.channel.sudo("cat /tmp/vagrant-network-entry_#{interface} >> #{network_scripts_dir}/ifcfg-eth#{interface}")
44
44
  vm.channel.sudo("/sbin/ifup eth#{interface}")
45
45
  end
@@ -44,9 +44,14 @@ module Vagrant
44
44
 
45
45
  command = "puppetd #{options} --server #{config.puppet_server} --certname #{cn}"
46
46
 
47
- env.ui.info I18n.t("vagrant.provisioners.puppet_server.running_puppetd")
47
+ env[:ui].info I18n.t("vagrant.provisioners.puppet_server.running_puppetd")
48
48
  env[:vm].channel.sudo(command) do |type, data|
49
- env.ui.info(data)
49
+ # Output the data with the proper color based on the stream.
50
+ color = type == :stdout ? :green : :red
51
+
52
+ # Note: Be sure to chomp the data to avoid the newlines that the
53
+ # Chef outputs.
54
+ env[:ui].info(data.chomp, :color => color, :prefix => false)
50
55
  end
51
56
  end
52
57
  end
@@ -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 = "0.9.0"
5
+ VERSION = "0.9.1"
6
6
  end
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: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hashimoto