vagrant-vbguest 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.7.1
2
+
3
+ - Fix auto-reloading for vagrant 1.1 [GH-52]
4
+ Also changes the reload method for vagrant 1.0 when ran
5
+ as middleware (to not run buildin actions manually).
6
+
1
7
  ## 0.7.0
2
8
 
3
9
  - When looking for a GuestAdditions iso file in media manager
@@ -31,7 +37,7 @@
31
37
  Installers, when executing shell commands on the guest system,
32
38
  should use vbguests `communicate` wrapper. e.g.:
33
39
  A call like `vm.channel.sudo 'apt-get update'` should be
34
- changed to `channel.sudo 'apt-get update'`
40
+ changed to `communicate.sudo 'apt-get update'`
35
41
  The old `vm.channel` syntax will continue to work on vagrant 1.0.x
36
42
  but will fail on vagrant 1.1.x.
37
43
 
data/Readme.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Requires vagrant 0.9.4 or later (including 1.0 and 1.1)
8
8
 
9
- On Vagrant 1.1.x use:
9
+ ### Vagrant 1.1
10
10
 
11
11
  ```bash
12
12
  $ vagrant plugin install vagrant-vbguest
@@ -249,7 +249,7 @@ end
249
249
 
250
250
  ## Knows Issues
251
251
 
252
- * The installer script, which mounts and runs the GuestAdditions Installer Binary, works on linux only. Most likely it will run on most unix-like plattform.
252
+ * The installer script, which mounts and runs the GuestAdditions Installer Binary, works on linux only. Most likely it will run on most unix-like plattform.
253
253
  * The installer script requires a directory `/mnt` on the guest system
254
254
  * On multi vm boxes, the iso file will be downloaded for each vm
255
255
  * The plugin installation on Windows host systems my not work as expected (using `vagrant gem install vagrant-vbguest`). Try `C:\vagrant\vagrant\embedded\bin\gem.bat install vagrant-vbguest` instead. (See [issue #19](https://github.com/dotless-de/vagrant-vbguest/issues/19#issuecomment-7040304))
@@ -82,12 +82,6 @@ module VagrantVbguest
82
82
  reboot(vm, options) if _rebootable && machine.reboot?
83
83
  end
84
84
 
85
- def reboot vm, options
86
- if super
87
- vm.reload(options)
88
- end
89
- end
90
-
91
85
  def check_runable_on(vm); end
92
86
  end
93
87
 
@@ -9,16 +9,23 @@ module VagrantVbguest
9
9
  end
10
10
 
11
11
  def reboot(vm, options)
12
- if rebooted?(vm)
13
- vm.ui.error(I18n.t("vagrant.plugins.vbguest.restart_loop_guard_activated"))
12
+ run_reboot = if rebooted?(vm)
13
+ vm.env.ui.error(I18n.t("vagrant.plugins.vbguest.restart_loop_guard_activated"))
14
14
  false
15
15
  elsif options[:auto_reboot]
16
- vm.ui.warn(I18n.t("vagrant.plugins.vbguest.restart_vm"))
16
+ vm.env.ui.warn(I18n.t("vagrant.plugins.vbguest.restart_vm"))
17
17
  @@rebooted[ VmCompatible.vm_id(vm) ] = true
18
18
  else
19
- vm.ui.warn(I18n.t("vagrant.plugins.vbguest.suggest_restart", :name => vm.name))
19
+ vm.env.ui.warn(I18n.t("vagrant.plugins.vbguest.suggest_restart", :name => vm.name))
20
20
  false
21
21
  end
22
+ return unless run_reboot
23
+
24
+ if Vagrant::VERSION < '1.1.0'
25
+ vm.reload(options)
26
+ else
27
+ vm.action(:reload, options)
28
+ end
22
29
  end
23
30
  end
24
31
 
@@ -28,12 +28,5 @@ module VagrantVbguest
28
28
  @app.call(env)
29
29
  end
30
30
 
31
- def reboot vm, options
32
- if super
33
- @env[:action_runner].run(Vagrant::Action::VM::Halt, @env)
34
- @env[:action_runner].run(Vagrant::Action::VM::Boot, @env)
35
- end
36
- end
37
-
38
31
  end
39
32
  end
@@ -1,3 +1,3 @@
1
1
  module VagrantVbguest
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vbguest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-26 00:00:00.000000000 Z
12
+ date: 2013-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: micromachine
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  segments:
127
127
  - 0
128
- hash: 412328394721376976
128
+ hash: -3661598601384978746
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements: