vagrant_box_version 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/vagrant_box_version/version-checking.rb +7 -7
- data/lib/vagrant_box_version/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fc74ace0d2aca515f64f5351d36e2a9aef37104
|
4
|
+
data.tar.gz: 9933bcf20f40f7f4f73ad0fa1f1767f45d77d044
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9db6f86384f752f62c4437997c69ff575ea0603f177efb8f4fdf3171c62b20ae907921bce180d34a34b810448f12ce0e3d3a161494af94eebfb79bfdfd00db20
|
7
|
+
data.tar.gz: 9ede866eccf9f1a632235249eae8e255c981ce323d32593f73635f27999ff73ecb76b6e0659584170c87c47b9d2d45ec29eeaa06a13632a0607253482e78958a
|
data/README.md
CHANGED
@@ -44,6 +44,9 @@ You can then run `vagrant version` to check you have the latest version. If
|
|
44
44
|
you don't or either remote or local version can't be determined, you will be
|
45
45
|
warned about it.
|
46
46
|
|
47
|
+
From version 0.0.2, you can simply run `vagrant up`, `vagrant provision` or
|
48
|
+
`vagrant reload` and the version checking will be triggered.
|
49
|
+
|
47
50
|
### Installation from source.
|
48
51
|
|
49
52
|
Simply run `rake build`, and then
|
@@ -32,21 +32,21 @@ module VagrantBoxVersion
|
|
32
32
|
version = local_version(box.directory)
|
33
33
|
remote = remote_version(machine.config.version.url, box.name)
|
34
34
|
|
35
|
-
ui.info("Local version is #{version || "unknown"}")
|
35
|
+
ui.info("Local version is #{version || "unknown"}", scope: machine.name)
|
36
36
|
|
37
37
|
if (version || VersionString.new("0")) < (remote || VersionString.new("0"))
|
38
|
-
ui.warn("Version #{remote} is available!")
|
38
|
+
ui.warn("Version #{remote} is available!", scope: machine.name)
|
39
39
|
ui.info("To update, run:")
|
40
|
-
ui.info(" vagrant destroy && vagrant box remove #{box.name} #{box.provider.to_s}")
|
40
|
+
ui.info(" vagrant destroy #{machine.name} && vagrant box remove #{box.name} #{box.provider.to_s}")
|
41
41
|
elsif version.nil?
|
42
|
-
ui.warn("Local version couldn't be determined. You should probably upgrade your box.")
|
42
|
+
ui.warn("Local version couldn't be determined. You should probably upgrade your box.", scope: machine.name)
|
43
43
|
elsif remote.nil?
|
44
|
-
ui.warn("Remote version couldn't be determined. Try again later.")
|
44
|
+
ui.warn("Remote version couldn't be determined. Try again later.", scope: machine.name)
|
45
45
|
else
|
46
|
-
ui.success("You are up to date!")
|
46
|
+
ui.success("You are up to date!", scope: machine.name)
|
47
47
|
end
|
48
48
|
else
|
49
|
-
ui.success("There is no local box yet. Nothing to do.")
|
49
|
+
ui.success("There is no local box yet. Nothing to do.", scope: machine.name)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant_box_version
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edd Steel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|