vagrantup 0.6.0 → 0.6.1
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 +5 -1
- data/Gemfile.lock +1 -1
- data/lib/vagrant/config.rb +3 -3
- data/lib/vagrant/ui.rb +11 -7
- data/lib/vagrant/version.rb +1 -1
- data/test/vagrant/config_test.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9abdaab5dda1bb7cf6daccb20446577e9e813b61
|
4
|
+
data.tar.gz: f99e14d27aff73cbda06e3a85d0db22dbbc6ceb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dce66d42750b8c111c5c9dcd619739c8bc655d18ab2074caf853dbaf3ca473e575d0c80116b82839c34879a641b5698efd582536da4b1a12d30b2d4864d91d9
|
7
|
+
data.tar.gz: 65072fa776344a6b2691823fd785f529458fc7dcb23b6dc167396841c34e164fd4c259998936e0e9a4c3505a5e45d9718096b6f1adefd378fb8ed8ac9a472b04
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
## 0.6.
|
1
|
+
## 0.6.1 (September 27, 2010)
|
2
|
+
|
3
|
+
- Fix issues with Ruby 1.8.7 where Vagrant simply failed.
|
4
|
+
|
5
|
+
## 0.6.0 (September 27, 2010)
|
2
6
|
|
3
7
|
- VM name now defaults to the name of the containing folder, plus a timestamp.
|
4
8
|
This should make it easier to identify VMs in the VirtualBox GUI.
|
data/Gemfile.lock
CHANGED
data/lib/vagrant/config.rb
CHANGED
@@ -116,19 +116,19 @@ module Vagrant
|
|
116
116
|
#
|
117
117
|
# If you're looking to create your own configuration class, see {Base}.
|
118
118
|
class Top < Base
|
119
|
-
@@configures =
|
119
|
+
@@configures = {} if !defined?(@@configures)
|
120
120
|
|
121
121
|
class << self
|
122
122
|
# The list of registered configuration classes as well as the key
|
123
123
|
# they're registered under.
|
124
124
|
def configures_list
|
125
|
-
@@configures ||=
|
125
|
+
@@configures ||= {}
|
126
126
|
end
|
127
127
|
|
128
128
|
# Registers a configuration class with the given key. This method shouldn't
|
129
129
|
# be called. Instead, inherit from {Base} and call {Base.configures}.
|
130
130
|
def configures(key, klass)
|
131
|
-
configures_list
|
131
|
+
configures_list[key] = klass
|
132
132
|
attr_reader key.to_sym
|
133
133
|
end
|
134
134
|
end
|
data/lib/vagrant/ui.rb
CHANGED
@@ -26,16 +26,20 @@ module Vagrant
|
|
26
26
|
end
|
27
27
|
|
28
28
|
[[:warn, :yellow], [:error, :red], [:info, nil], [:confirm, :green]].each do |method, color|
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
class_eval <<-CODE
|
30
|
+
def #{method}(message, opts=nil)
|
31
|
+
@shell.say("\#{line_reset}\#{format_message(message, opts)}", "#{color}")
|
32
|
+
end
|
33
|
+
CODE
|
32
34
|
end
|
33
35
|
|
34
36
|
[:ask, :no?, :yes?].each do |method|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
37
|
+
class_eval <<-CODE
|
38
|
+
def #{method}(message, opts=nil)
|
39
|
+
opts ||= {}
|
40
|
+
@shell.send(method, format_message(message, opts), opts[:color])
|
41
|
+
end
|
42
|
+
CODE
|
39
43
|
end
|
40
44
|
|
41
45
|
def report_progress(progress, total, show_parts=true)
|
data/lib/vagrant/version.rb
CHANGED
data/test/vagrant/config_test.rb
CHANGED
@@ -138,7 +138,7 @@ class ConfigTest < Test::Unit::TestCase
|
|
138
138
|
|
139
139
|
context "top config class" do
|
140
140
|
setup do
|
141
|
-
@configures_list =
|
141
|
+
@configures_list = {}
|
142
142
|
@klass::Top.stubs(:configures_list).returns(@configures_list)
|
143
143
|
end
|
144
144
|
|
@@ -149,8 +149,8 @@ class ConfigTest < Test::Unit::TestCase
|
|
149
149
|
end
|
150
150
|
|
151
151
|
should "add key and klass to configures list" do
|
152
|
-
@configures_list.expects(:<<).with([@key, @config_klass])
|
153
152
|
@klass::Top.configures(@key, @config_klass)
|
153
|
+
assert_equal @config_klass, @configures_list[@key]
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
@@ -168,7 +168,7 @@ class ConfigTest < Test::Unit::TestCase
|
|
168
168
|
instance = mock("instance#{i}")
|
169
169
|
instance.expects(:env=).with(env)
|
170
170
|
klass.expects(:new).returns(instance)
|
171
|
-
@configures_list
|
171
|
+
@configures_list[key] = klass
|
172
172
|
end
|
173
173
|
|
174
174
|
@klass::Top.new(env)
|