vagrant 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 0
10
- version: 0.9.0
9
+ - 1
10
+ version: 0.9.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mitchell Hashimoto
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-01-17 00:00:00 Z
19
+ date: 2012-01-18 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  version_requirements: &id001 !ruby/object:Gem::Requirement