diff --git a/plugins/synced_folders/smb/config.rb b/plugins/synced_folders/smb/config.rb new file mode 100644 index 000000000..d853092ac --- /dev/null +++ b/plugins/synced_folders/smb/config.rb @@ -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 diff --git a/plugins/synced_folders/smb/plugin.rb b/plugins/synced_folders/smb/plugin.rb index 0e6370e29..bfb58a5b2 100644 --- a/plugins/synced_folders/smb/plugin.rb +++ b/plugins/synced_folders/smb/plugin.rb @@ -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!