mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-07-16 04:15:49 -04:00
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
20 lines
469 B
Ruby
20 lines
469 B
Ruby
# Copyright IBM Corp. 2010, 2025
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
module VagrantPlugins
|
|
module GuestDebian
|
|
module Cap
|
|
class SMB
|
|
def self.smb_install(machine)
|
|
comm = machine.communicate
|
|
if !comm.test("test -f /sbin/mount.cifs")
|
|
comm.sudo <<-EOH.gsub(/^ {14}/, '')
|
|
apt-get -yqq update
|
|
apt-get -yqq install cifs-utils
|
|
EOH
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|