vagrant-vbguest 0.6.0 → 0.6.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.6.1 (2012-01-13)
2
+
3
+ - Fix missing command output block and parameters for
4
+ installation process [GH-37]
5
+ - Update README to reflect new wording for status informations
6
+
1
7
  ## 0.6.0 (2012-01-13)
2
8
 
3
9
  - Debian installer now cope with missing `dkms` package [GH-30]
data/Readme.md CHANGED
@@ -79,24 +79,29 @@ This is a per box settings. On multi vm environments you need to set that for ea
79
79
 
80
80
  When *vagrant-vbguest* is running it will provide you some logs:
81
81
 
82
- ...
82
+ [...]
83
+ [default] Booting VM...
83
84
  [default] Booting VM...
84
85
  [default] Waiting for VM to boot. This can take a few minutes.
85
86
  [default] VM booted and ready for use!
86
- [default] Installing Virtualbox Guest Additions 4.1.14 - guest's version is 4.1.12
87
- [default] Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
88
- [default] Copy installer file setup_debian.sh into the box /tmp/install_vbguest.sh
87
+ [default] GuestAdditions versions on your host (4.2.6) and guest (4.1.0) do not match.
89
88
  stdin: is not a tty
90
89
  Reading package lists...
91
90
  Building dependency tree...
92
91
  Reading state information...
93
- linux-headers-2.6.32-30-server is already the newest version.
94
- dkms is already the newest version.
95
- 0 upgraded, 0 newly installed, 0 to remove and 142 not upgraded.
92
+ The following extra packages will be installed:
93
+ fakeroot linux-headers-2.6.32-33 patch
94
+
95
+ [...]
96
+
97
+ [default] Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
98
+ stdin: is not a tty
99
+ [default] Installing Virtualbox Guest Additions 4.2.6 - guest version is 4.1.0
100
+ stdin: is not a tty
96
101
  Verifying archive integrity... All good.
97
- Uncompressing VirtualBox 4.1.14 Guest Additions for Linux..........
102
+ Uncompressing VirtualBox 4.2.6 Guest Additions for Linux...........
98
103
  VirtualBox Guest Additions installer
99
- Removing installed version 4.1.12 of VirtualBox Guest Additions...
104
+ Removing installed version 4.1.0 of VirtualBox Guest Additions...
100
105
  tar: Record size = 8 blocks
101
106
  Removing existing VirtualBox DKMS kernel modules ...done.
102
107
  Removing existing VirtualBox non-DKMS kernel modules ...done.
@@ -106,7 +111,21 @@ When *vagrant-vbguest* is running it will provide you some logs:
106
111
 
107
112
  Installing the Window System drivers ...fail!
108
113
  (Could not find the X.Org or XFree86 Window System.)
109
- ...
114
+ stdin: is not a tty
115
+ [default] Restarting VM to apply changes...
116
+ [default] Attempting graceful shutdown of VM...
117
+ [default] Booting VM...
118
+ [default] Waiting for VM to boot. This can take a few minutes.
119
+ [default] VM booted and ready for use!
120
+ [default] Configuring and enabling network interfaces...
121
+ [default] Setting host name...
122
+ [default] Mounting shared folders...
123
+ [default] -- v-root: /vagrant
124
+ [default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
125
+ [default] Running provisioner: Vagrant::Provisioners::ChefSolo...
126
+ [default] Generating chef JSON and uploading...
127
+ [default] Running chef-solo...
128
+ [...]
110
129
 
111
130
 
112
131
  The plugin's part starts at `[default] Installing Virtualbox Guest Additions 4.1.14 - guest's version is 4.1.1`, telling you that:
@@ -124,7 +143,7 @@ When everything is fine, and no update is needed, you see log like:
124
143
  [default] Booting VM...
125
144
  [default] Waiting for VM to boot. This can take a few minutes.
126
145
  [default] VM booted and ready for use!
127
- [default] Detected Virtualbox Guest Additions 4.1.14 --- OK.
146
+ [default] GuestAdditions 4.2.6 running --- OK.
128
147
  ...
129
148
 
130
149
 
@@ -146,11 +165,11 @@ $ vagrant vbguest --status
146
165
 
147
166
  Telling you either about a version mismatch:
148
167
 
149
- [default] Virtualbox Guest Additions on host: 4.1.14 - guest's version is 4.1.0
168
+ [default] GuestAdditions versions on your host (4.2.6) and guest (4.1.0) do not match.
150
169
 
151
170
  or a match:
152
171
 
153
- [default] Detected Virtualbox Guest Additions 4.1.14 --- OK
172
+ [default] GuestAdditions 4.2.6 running --- OK.
154
173
 
155
174
 
156
175
  The `auto-reboot` is tured off by default, when running as a command. Vbguest will suggest you to reboot the box when needed. To turn it on simply pass the `--auto-reboot` parameter:
@@ -50,14 +50,14 @@ module VagrantVbguest
50
50
  # All necessary steps for an installation must be defined here.
51
51
  # This includes uploading the iso into the box, mounting,
52
52
  # installing and cleaning up.
53
+ # The path to the local iso file should be obtained by calling +iso_file+
53
54
  # Subclasses must override this method!
54
55
  #
55
- # @param [String] iso_file Optional path to the local GuestAdditions iso file
56
56
  # @param [Hash] opts Optional options Hash wich meight get passed to {Vagrant::Communication::SSH#execute} and firends
57
57
  # @yield [type, data] Takes a Block like {Vagrant::Communication::Base#execute} for realtime output of the command being executed
58
58
  # @yieldparam [String] type Type of the output, `:stdout`, `:stderr`, etc.
59
59
  # @yieldparam [String] data Data for the given output.
60
- def install(iso_fileO=nil, opts=nil, &block)
60
+ def install(opts=nil, &block)
61
61
  end
62
62
 
63
63
  # Handels the rebuild of allready running GuestAdditions
@@ -8,6 +8,10 @@ module VagrantVbguest
8
8
 
9
9
  # installes the correct linux-headers package
10
10
  # installes `dkms` package for dynamic kernel module loading
11
+ # @param [Hash] opts Optional options Hash wich meight get passed to {Vagrant::Communication::SSH#execute} and firends
12
+ # @yield [type, data] Takes a Block like {Vagrant::Communication::Base#execute} for realtime output of the command being executed
13
+ # @yieldparam [String] type Type of the output, `:stdout`, `:stderr`, etc.
14
+ # @yieldparam [String] data Data for the given output.
11
15
  def install(opts=nil, &block)
12
16
  begin
13
17
  vm.channel.sudo(install_dependencies_cmd, opts, &block)
@@ -39,14 +39,22 @@ module VagrantVbguest
39
39
 
40
40
  # a generic way of installing GuestAdditions assuming all
41
41
  # dependencies on the guest are installed
42
+ # @param [Hash] opts Optional options Hash wich meight get passed to {Vagrant::Communication::SSH#execute} and firends
43
+ # @yield [type, data] Takes a Block like {Vagrant::Communication::Base#execute} for realtime output of the command being executed
44
+ # @yieldparam [String] type Type of the output, `:stdout`, `:stderr`, etc.
45
+ # @yieldparam [String] data Data for the given output.
42
46
  def install(opts=nil, &block)
43
47
  vm.ui.warn I18n.t("vagrant.plugins.vbguest.installer.generic_linux_installer") if self.class == Linux
44
48
  upload(iso_file)
45
- mount_iso
46
- execute_installer
47
- unmount_iso
49
+ mount_iso(opts, &block)
50
+ execute_installer(opts, &block)
51
+ unmount_iso(opts, &block)
48
52
  end
49
53
 
54
+ # @param [Hash] opts Optional options Hash wich meight get passed to {Vagrant::Communication::SSH#execute} and firends
55
+ # @yield [type, data] Takes a Block like {Vagrant::Communication::Base#execute} for realtime output of the command being executed
56
+ # @yieldparam [String] type Type of the output, `:stdout`, `:stderr`, etc.
57
+ # @yieldparam [String] data Data for the given output.
50
58
  def running?(opts=nil, &block)
51
59
  opts = {
52
60
  :sudo => true
@@ -69,10 +77,18 @@ module VagrantVbguest
69
77
  @guest_version
70
78
  end
71
79
 
80
+ # @param [Hash] opts Optional options Hash wich meight get passed to {Vagrant::Communication::SSH#execute} and firends
81
+ # @yield [type, data] Takes a Block like {Vagrant::Communication::Base#execute} for realtime output of the command being executed
82
+ # @yieldparam [String] type Type of the output, `:stdout`, `:stderr`, etc.
83
+ # @yieldparam [String] data Data for the given output.
72
84
  def rebuild(opts=nil, &block)
73
85
  vm.channel.sudo('/etc/init.d/vboxadd setup', opts, &block)
74
86
  end
75
87
 
88
+ # @param [Hash] opts Optional options Hash wich meight get passed to {Vagrant::Communication::SSH#execute} and firends
89
+ # @yield [type, data] Takes a Block like {Vagrant::Communication::Base#execute} for realtime output of the command being executed
90
+ # @yieldparam [String] type Type of the output, `:stdout`, `:stderr`, etc.
91
+ # @yieldparam [String] data Data for the given output.
76
92
  def start(opts=nil, &block)
77
93
  opts = {:error_check => false}.merge(opts || {})
78
94
  vm.channel.sudo('/etc/init.d/vboxadd start', opts, &block)
@@ -82,6 +98,11 @@ module VagrantVbguest
82
98
  # A generic helper method to execute the installer. The iso file
83
99
  # has to be mounted on +mount_point+.
84
100
  # This also yields a installation warning to the user.
101
+ #
102
+ # @param [Hash] opts Optional options Hash wich meight get passed to {Vagrant::Communication::SSH#execute} and firends
103
+ # @yield [type, data] Takes a Block like {Vagrant::Communication::Base#execute} for realtime output of the command being executed
104
+ # @yieldparam [String] type Type of the output, `:stdout`, `:stderr`, etc.
105
+ # @yieldparam [String] data Data for the given output.
85
106
  def execute_installer(opts=nil, &block)
86
107
  installer = File.join(mount_point, 'VBoxLinuxAdditions.run')
87
108
  yield_installation_waring(installer)
@@ -91,6 +112,11 @@ module VagrantVbguest
91
112
  # A generic helper method for mounting the GuestAdditions iso file
92
113
  # on most linux system.
93
114
  # Mounts the given uploaded file from +tmp_path+ on +mount_point+.
115
+ #
116
+ # @param [Hash] opts Optional options Hash wich meight get passed to {Vagrant::Communication::SSH#execute} and firends
117
+ # @yield [type, data] Takes a Block like {Vagrant::Communication::Base#execute} for realtime output of the command being executed
118
+ # @yieldparam [String] type Type of the output, `:stdout`, `:stderr`, etc.
119
+ # @yieldparam [String] data Data for the given output.
94
120
  def mount_iso(opts=nil, &block)
95
121
  vm.channel.sudo("mount #{tmp_path} -o loop #{mount_point}", opts, &block)
96
122
  end
@@ -98,6 +124,11 @@ module VagrantVbguest
98
124
  # A generic helper method for un-mounting the GuestAdditions iso file
99
125
  # on most linux system
100
126
  # Unmounts the +mount_point+.
127
+ #
128
+ # @param [Hash] opts Optional options Hash wich meight get passed to {Vagrant::Communication::SSH#execute} and firends
129
+ # @yield [type, data] Takes a Block like {Vagrant::Communication::Base#execute} for realtime output of the command being executed
130
+ # @yieldparam [String] type Type of the output, `:stdout`, `:stderr`, etc.
131
+ # @yieldparam [String] data Data for the given output.
101
132
  def unmount_iso(opts=nil, &block)
102
133
  vm.channel.sudo("umount #{mount_point}", opts, &block)
103
134
  end
@@ -1,3 +1,3 @@
1
1
  module VagrantVbguest
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.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.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: