Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 59c51ac

Browse files
committed
Merge pull request #18 from aripalo/master
refreshonly true for killing vbox processes and add tests
2 parents fd53eac + 5db21c9 commit 59c51ac

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

manifests/init.pp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
class virtualbox {
77

88
exec { 'Kill Virtual Box Processes':
9-
command => 'pkill "VBoxXPCOMIPCD" || true && pkill "VBoxSVC" || true && pkill "VBoxHeadless" || true',
10-
path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
11-
#returns => [0,1],
12-
#refreshonly => true,
9+
command => 'pkill "VBoxXPCOMIPCD" || true && pkill "VBoxSVC" || true && pkill "VBoxHeadless" || true',
10+
path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
11+
refreshonly => true,
1312
}
1413

1514
package { 'VirtualBox-4.3.2-90405':

spec/classes/virtualbox_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
require 'spec_helper'
22

33
describe 'virtualbox' do
4+
it do
5+
should contain_exec('Kill Virtual Box Processes').with({
6+
:command => 'pkill "VBoxXPCOMIPCD" || true && pkill "VBoxSVC" || true && pkill "VBoxHeadless" || true',
7+
:path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
8+
:refreshonly => true,
9+
})
10+
end
411
it do
512
should contain_package('VirtualBox-4.3.2-90405').with({
613
:ensure => 'installed',

0 commit comments

Comments
 (0)