guests/debian: Move NFS into same file

This commit is contained in:
Seth Vargo 2016-06-24 21:17:45 -04:00
parent 0af02fc78c
commit 9134172ce6
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
2 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,11 @@
module VagrantPlugins
module GuestDebian
module Cap
class NFSClient
class NFS
def self.nfs_client_install(machine)
comm = machine.communicate
comm.sudo <<-EOH.gsub(/^ {12}/, '')
set -e
apt-get -yqq update
apt-get -yqq install nfs-common portmap
EOH

View File

@ -22,8 +22,8 @@ module VagrantPlugins
end
guest_capability(:debian, :nfs_client_install) do
require_relative "cap/nfs_client"
Cap::NFSClient
require_relative "cap/nfs"
Cap::NFS
end
guest_capability(:debian, :rsync_install) do