"Fossies" - the Fresh Open Source Software Archive

Member "vagrant-2.2.14/plugins/guests/darwin/plugin.rb" (20 Nov 2020, 2473 Bytes) of package /linux/misc/vagrant-2.2.14.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "plugin.rb": 2.2.13_vs_2.2.14.

    1 require "vagrant"
    2 
    3 module VagrantPlugins
    4   module GuestDarwin
    5     class Plugin < Vagrant.plugin("2")
    6       name "Darwin guest"
    7       description "Darwin guest support."
    8 
    9       action_hook(:apfs_firmlinks, :synced_folders) do |hook|
   10         require_relative "cap/mount_vmware_shared_folder"
   11         hook.prepend(Vagrant::Action::Builtin::Delayed, Cap::MountVmwareSharedFolder.method(:write_apfs_firmlinks))
   12       end
   13 
   14       guest(:darwin, :bsd)  do
   15         require_relative "guest"
   16         Guest
   17       end
   18 
   19       guest_capability(:darwin, :change_host_name) do
   20         require_relative "cap/change_host_name"
   21         Cap::ChangeHostName
   22       end
   23 
   24       guest_capability(:darwin, :choose_addressable_ip_addr) do
   25         require_relative "cap/choose_addressable_ip_addr"
   26         Cap::ChooseAddressableIPAddr
   27       end
   28 
   29       guest_capability(:darwin, :configure_networks) do
   30         require_relative "cap/configure_networks"
   31         Cap::ConfigureNetworks
   32       end
   33 
   34       guest_capability(:darwin, :darwin_version) do
   35         require_relative "cap/darwin_version"
   36         Cap::DarwinVersion
   37       end
   38 
   39       guest_capability(:darwin, :darwin_major_version) do
   40         require_relative "cap/darwin_version"
   41         Cap::DarwinVersion
   42       end
   43 
   44       guest_capability(:darwin, :halt) do
   45         require_relative "cap/halt"
   46         Cap::Halt
   47       end
   48 
   49       guest_capability(:darwin, :mount_smb_shared_folder) do
   50         require_relative "cap/mount_smb_shared_folder"
   51         Cap::MountSMBSharedFolder
   52       end
   53 
   54       guest_capability(:darwin, :mount_vmware_shared_folder) do
   55         require_relative "cap/mount_vmware_shared_folder"
   56         Cap::MountVmwareSharedFolder
   57       end
   58 
   59       guest_capability(:darwin, :rsync_installed) do
   60         require_relative "cap/rsync"
   61         Cap::RSync
   62       end
   63 
   64       guest_capability(:darwin, :rsync_command) do
   65         require_relative "cap/rsync"
   66         Cap::RSync
   67       end
   68 
   69       guest_capability(:darwin, :rsync_post) do
   70         require_relative "cap/rsync"
   71         Cap::RSync
   72       end
   73 
   74       guest_capability(:darwin, :rsync_pre) do
   75         require_relative "cap/rsync"
   76         Cap::RSync
   77       end
   78 
   79       guest_capability(:darwin, :shell_expand_guest_path) do
   80         require_relative "cap/shell_expand_guest_path"
   81         Cap::ShellExpandGuestPath
   82       end
   83 
   84       guest_capability(:darwin, :verify_vmware_hgfs) do
   85         require_relative "cap/verify_vmware_hgfs"
   86         Cap::VerifyVmwareHgfs
   87       end
   88     end
   89   end
   90 end