Include configuration for smb synced folders
This commit is contained in:
parent
5b7714f542
commit
6e4139acd3
|
@ -0,0 +1,23 @@
|
|||
require "vagrant"
|
||||
|
||||
module VagrantPlugins
|
||||
module SyncedFolderSMB
|
||||
class Config < Vagrant.plugin("2", :config)
|
||||
attr_accessor :functional
|
||||
|
||||
def initialize
|
||||
super
|
||||
|
||||
@functional = UNSET_VALUE
|
||||
end
|
||||
|
||||
def finalize!
|
||||
@functional = true if @functional == UNSET_VALUE
|
||||
end
|
||||
|
||||
def to_s
|
||||
"SMB"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -12,6 +12,11 @@ module VagrantPlugins
|
|||
Windows or macOS and share them to guest machines.
|
||||
EOF
|
||||
|
||||
config("smb") do
|
||||
require_relative "config"
|
||||
Config
|
||||
end
|
||||
|
||||
synced_folder("smb", 7) do
|
||||
require_relative "synced_folder"
|
||||
init!
|
||||
|
|
Loading…
Reference in New Issue