Sha256: 4871d1fc4578ce5d706d3bf89b0195854207d6657a382bb3488032551f654673

Contents?: true

Size: 1.43 KB

Versions: 9

Compression:

Stored size: 1.43 KB

Contents

require "vagrant"

module VagrantPlugins
  module SyncedFolderSMB
    autoload :Errors, File.expand_path("../errors", __FILE__)

    # This plugin implements SMB synced folders.
    class Plugin < Vagrant.plugin("2")
      name "SMB synced folders"
      description <<-EOF
      The SMB synced folders plugin enables you to use SMB folders on
      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!
        SyncedFolder
      end

      synced_folder_capability("smb", "default_fstab_modification") do
        require_relative "cap/default_fstab_modification"
        Cap::DefaultFstabModification
      end

      synced_folder_capability("smb", "mount_options") do
        require_relative "cap/mount_options"
        Cap::MountOptions
      end

      synced_folder_capability("smb", "mount_name") do
        require_relative "cap/mount_options"
        Cap::MountOptions
      end

      synced_folder_capability("smb", "mount_type") do
        require_relative "cap/mount_options"
        Cap::MountOptions
      end

      protected

      def self.init!
        return if defined?(@_init)
        I18n.load_path << File.expand_path(
          "templates/locales/synced_folder_smb.yml", Vagrant.source_root)
        I18n.reload!
        @_init = true
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/synced_folders/smb/plugin.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/synced_folders/smb/plugin.rb
vagrant-unbundled-2.3.3.0 plugins/synced_folders/smb/plugin.rb
vagrant-unbundled-2.3.2.0 plugins/synced_folders/smb/plugin.rb
vagrant-unbundled-2.2.19.0 plugins/synced_folders/smb/plugin.rb
vagrant-unbundled-2.2.18.0 plugins/synced_folders/smb/plugin.rb
vagrant-unbundled-2.2.16.0 plugins/synced_folders/smb/plugin.rb
vagrant-unbundled-2.2.14.0 plugins/synced_folders/smb/plugin.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/synced_folders/smb/plugin.rb