From 6e4139acd3991b962d88dfa597c9a2a69147a156 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 3 Jan 2018 09:31:01 -0800 Subject: [PATCH] Include configuration for smb synced folders --- plugins/synced_folders/smb/config.rb | 23 +++++++++++++++++++++++ plugins/synced_folders/smb/plugin.rb | 5 +++++ 2 files changed, 28 insertions(+) create mode 100644 plugins/synced_folders/smb/config.rb 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!