2015-11-23 19:11:24 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module GuestDebian
|
|
|
|
module Cap
|
|
|
|
class SMB
|
|
|
|
def self.smb_install(machine)
|
2016-06-05 01:31:41 +00:00
|
|
|
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
|
2015-11-23 19:11:24 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|