vagrant-unbundled 1.8.4.2 → 1.8.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +52 -0
- data/Gemfile.lock +9 -7
- data/RELEASE.md +37 -14
- data/lib/vagrant/action/builtin/box_add.rb +3 -1
- data/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +5 -0
- data/lib/vagrant/box_collection.rb +2 -1
- data/lib/vagrant/bundler.rb +36 -1
- data/lib/vagrant/errors.rb +16 -8
- data/lib/vagrant/plugin/state_file.rb +8 -1
- data/lib/vagrant/util/platform.rb +1 -1
- data/plugins/guests/arch/cap/change_host_name.rb +13 -10
- data/plugins/guests/arch/cap/configure_networks.rb +11 -8
- data/plugins/guests/arch/cap/nfs.rb +35 -0
- data/plugins/guests/arch/cap/rsync.rb +16 -0
- data/plugins/guests/arch/cap/smb.rb +17 -0
- data/plugins/guests/arch/plugin.rb +28 -3
- data/plugins/guests/atomic/cap/change_host_name.rb +13 -10
- data/plugins/guests/atomic/plugin.rb +3 -3
- data/plugins/guests/{netbsd → bsd}/cap/halt.rb +2 -2
- data/plugins/guests/bsd/cap/nfs.rb +49 -0
- data/plugins/guests/bsd/cap/public_key.rb +65 -0
- data/plugins/guests/bsd/cap/virtualbox.rb +16 -0
- data/plugins/guests/bsd/guest.rb +9 -0
- data/plugins/guests/bsd/plugin.rb +40 -0
- data/plugins/guests/coreos/cap/change_host_name.rb +1 -1
- data/plugins/guests/coreos/plugin.rb +4 -4
- data/plugins/guests/darwin/cap/change_host_name.rb +4 -1
- data/plugins/guests/darwin/cap/configure_networks.rb +12 -5
- data/plugins/guests/darwin/cap/halt.rb +3 -1
- data/plugins/guests/darwin/cap/rsync.rb +7 -4
- data/plugins/guests/darwin/plugin.rb +13 -28
- data/plugins/guests/debian/cap/change_host_name.rb +14 -15
- data/plugins/guests/debian/cap/configure_networks.rb +2 -6
- data/plugins/guests/debian/cap/{nfs_client.rb → nfs.rb} +2 -1
- data/plugins/guests/debian/cap/rsync.rb +5 -6
- data/plugins/guests/debian/plugin.rb +8 -8
- data/plugins/guests/esxi/cap/mount_nfs_folder.rb +2 -2
- data/plugins/guests/esxi/plugin.rb +6 -6
- data/plugins/guests/fedora/cap/flavor.rb +1 -1
- data/plugins/guests/fedora/plugin.rb +2 -17
- data/plugins/guests/freebsd/cap/change_host_name.rb +2 -3
- data/plugins/guests/freebsd/cap/rsync.rb +7 -4
- data/plugins/guests/freebsd/plugin.rb +9 -29
- data/plugins/guests/funtoo/plugin.rb +3 -8
- data/plugins/guests/gentoo/cap/change_host_name.rb +21 -6
- data/plugins/guests/gentoo/cap/configure_networks.rb +35 -26
- data/plugins/guests/gentoo/plugin.rb +4 -4
- data/plugins/guests/linux/cap/choose_addressable_ip_addr.rb +2 -3
- data/plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb +31 -45
- data/plugins/guests/linux/cap/network_interfaces.rb +20 -0
- data/plugins/guests/linux/cap/nfs.rb +57 -0
- data/plugins/guests/linux/cap/public_key.rb +65 -0
- data/plugins/guests/linux/cap/rsync.rb +7 -4
- data/plugins/guests/linux/plugin.rb +30 -25
- data/plugins/guests/mint/plugin.rb +1 -1
- data/plugins/guests/netbsd/plugin.rb +10 -30
- data/plugins/guests/nixos/plugin.rb +5 -5
- data/plugins/guests/omnios/cap/change_host_name.rb +1 -1
- data/plugins/guests/omnios/plugin.rb +4 -4
- data/plugins/guests/openbsd/cap/change_host_name.rb +21 -3
- data/plugins/guests/openbsd/plugin.rb +10 -30
- data/plugins/guests/photon/cap/change_host_name.rb +1 -1
- data/plugins/guests/photon/plugin.rb +4 -4
- data/plugins/guests/pld/cap/change_host_name.rb +1 -1
- data/plugins/guests/pld/plugin.rb +4 -4
- data/plugins/guests/redhat/cap/change_host_name.rb +4 -3
- data/plugins/guests/redhat/cap/configure_networks.rb +1 -24
- data/plugins/guests/redhat/plugin.rb +7 -7
- data/plugins/guests/slackware/cap/change_host_name.rb +1 -1
- data/plugins/guests/slackware/cap/configure_networks.rb +1 -5
- data/plugins/guests/slackware/plugin.rb +3 -3
- data/plugins/guests/smartos/plugin.rb +12 -12
- data/plugins/guests/solaris/plugin.rb +14 -14
- data/plugins/guests/solaris11/plugin.rb +12 -12
- data/plugins/guests/suse/cap/change_host_name.rb +1 -1
- data/plugins/guests/suse/cap/configure_networks.rb +1 -5
- data/plugins/guests/suse/plugin.rb +8 -8
- data/plugins/guests/tinycore/cap/mount_nfs.rb +2 -2
- data/plugins/guests/tinycore/plugin.rb +7 -7
- data/plugins/guests/trisquel/plugin.rb +1 -1
- data/plugins/guests/ubuntu/guest.rb +1 -1
- data/plugins/guests/ubuntu/plugin.rb +1 -6
- data/plugins/guests/windows/plugin.rb +2 -2
- data/plugins/kernel_v2/config/vm.rb +8 -1
- data/plugins/providers/hyperv/scripts/get_vm_status.ps1 +25 -5
- data/plugins/providers/virtualbox/driver/meta.rb +1 -0
- data/plugins/providers/virtualbox/driver/version_5_1.rb +734 -0
- data/plugins/providers/virtualbox/plugin.rb +1 -0
- data/plugins/synced_folders/nfs/synced_folder.rb +10 -2
- data/plugins/synced_folders/rsync/helper.rb +11 -4
- data/scripts/{bintray_upload.sh → sign.sh} +0 -0
- data/templates/guests/arch/network_static.erb +3 -3
- data/templates/guests/arch/network_static6.erb +8 -0
- data/templates/guests/freebsd/network_static6.erb +6 -0
- data/templates/guests/funtoo/network_static6.erb +9 -0
- data/templates/guests/gentoo/network_dhcp.erb +1 -1
- data/templates/guests/gentoo/network_static.erb +4 -4
- data/templates/guests/gentoo/network_static6.erb +7 -0
- data/templates/guests/redhat/network_dhcp.erb +1 -1
- data/templates/guests/redhat/network_static.erb +4 -1
- data/templates/guests/{fedora → redhat}/network_static6.erb +5 -2
- data/templates/locales/en.yml +40 -6
- data/test/unit/plugins/guests/arch/cap/change_host_name_test.rb +6 -6
- data/test/unit/plugins/guests/arch/cap/configure_networks_test.rb +20 -15
- data/test/unit/plugins/guests/arch/cap/rsync_test.rb +30 -0
- data/test/unit/plugins/guests/arch/cap/smb_test.rb +38 -0
- data/test/unit/plugins/guests/atomic/cap/change_host_name_test.rb +9 -8
- data/test/unit/plugins/guests/{freebsd → bsd}/cap/halt_test.rb +11 -10
- data/test/unit/plugins/guests/{freebsd → bsd}/cap/insert_public_key_test.rb +7 -6
- data/test/unit/plugins/guests/bsd/cap/nfs_test.rb +68 -0
- data/test/unit/plugins/guests/coreos/cap/change_host_name_test.rb +5 -5
- data/test/unit/plugins/guests/darwin/cap/change_host_name_test.rb +5 -5
- data/test/unit/plugins/guests/darwin/cap/halt_test.rb +36 -0
- data/test/unit/plugins/guests/debian/cap/change_host_name_test.rb +3 -5
- data/test/unit/plugins/guests/debian/cap/configure_networks_test.rb +13 -9
- data/test/unit/plugins/guests/debian/cap/rsync_test.rb +3 -11
- data/test/unit/plugins/guests/freebsd/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/linux/cap/mount_nfs_test.rb +16 -3
- data/test/unit/plugins/guests/omnios/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/photon/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/pld/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/redhat/cap/change_host_name_test.rb +4 -3
- data/test/unit/plugins/guests/redhat/cap/configure_networks_test.rb +17 -33
- data/test/unit/plugins/guests/slackware/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/slackware/cap/configure_networks_test.rb +8 -4
- data/test/unit/plugins/guests/suse/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/suse/cap/configure_networks_test.rb +13 -16
- data/test/unit/plugins/kernel_v2/config/vm_test.rb +10 -2
- data/test/unit/templates/guests/arch/network_static_test.rb +4 -2
- data/test/unit/templates/guests/gentoo/network_dhcp_test.rb +2 -2
- data/test/unit/templates/guests/gentoo/network_static_test.rb +10 -10
- data/test/unit/templates/guests/redhat/network_dhcp_test.rb +2 -2
- data/test/unit/templates/guests/redhat/network_static_test.rb +9 -9
- data/vagrant.gemspec +3 -3
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/CHANGELOG.md +1 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/CONTRIBUTING.md +38 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/README.md +297 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/bin/listen +12 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/base.rb +141 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/bsd.rb +106 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/config.rb +26 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/darwin.rb +92 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/linux.rb +106 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/polling.rb +37 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/windows.rb +98 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter.rb +45 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/backend.rb +38 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/change.rb +76 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/cli.rb +65 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/directory.rb +87 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/config.rb +55 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/loop.rb +117 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/processor.rb +122 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/queue.rb +55 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/file.rb +80 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/fsm.rb +132 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/internals/thread_pool.rb +29 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/listener/config.rb +41 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/listener.rb +133 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/logger.rb +32 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/options.rb +23 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/queue_optimizer.rb +132 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record/entry.rb +64 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record/symlink_detector.rb +39 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record.rb +118 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/silencer/controller.rb +48 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/silencer.rb +97 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/version.rb +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen.rb +57 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.gitignore +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rspec +2 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rubocop-disables.yml +384 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rubocop.yml +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.travis.yml +43 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/AUTHORS +98 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/Gemfile +11 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/LICENSE +21 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/README.md +667 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/Rakefile +132 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/bin/restclient +92 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/history.md +310 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/rest-client.rb +2 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/rest_client.rb +2 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/abstract_response.rb +226 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/exceptions.rb +244 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/params_array.rb +72 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/payload.rb +209 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/platform.rb +49 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/raw_response.rb +38 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/request.rb +904 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/resource.rb +168 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/response.rb +80 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/utils.rb +235 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/version.rb +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/windows/root_certs.rb +105 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/windows.rb +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient.rb +184 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/rest-client.gemspec +31 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/rest-client.windows.gemspec +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/helpers.rb +22 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/_lib.rb +1 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/244b5494.0 +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/81b9768f.0 +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/README +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/digicert.crt +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/415660c1.0 +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/7651b327.0 +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/README +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/verisign.crt +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/certs/digicert.crt +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/certs/verisign.crt +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/httpbin_spec.rb +86 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/integration_spec.rb +125 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/request_spec.rb +127 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/spec_helper.rb +29 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/_lib.rb +1 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/abstract_response_spec.rb +145 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/exceptions_spec.rb +108 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/master_shake.jpg +0 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/params_array_spec.rb +36 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/payload_spec.rb +263 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/raw_response_spec.rb +18 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/request2_spec.rb +54 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/request_spec.rb +1265 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/resource_spec.rb +130 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/response_spec.rb +241 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/restclient_spec.rb +79 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/utils_spec.rb +147 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/windows/root_certs_spec.rb +22 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.gitignore +10 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.rspec +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.rubocop.yml +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.travis.yml +11 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/LICENSE.txt +21 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/README.md +151 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/logger.rb +16 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/quiet.rb +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/ruby_version.rb +58 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/travis/ruby_version.rb +59 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/travis.rb +58 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/version.rb +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/warning.rb +97 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep.rb +2 -0
- data/vendor/bundle/ruby/2.3.0/specifications/listen-3.1.5.gemspec +44 -0
- data/vendor/bundle/ruby/2.3.0/specifications/rest-client-2.0.0.gemspec +60 -0
- data/vendor/bundle/ruby/2.3.0/specifications/ruby_dep-1.4.0.gemspec +34 -0
- data/version.txt +1 -1
- metadata +147 -44
- data/plugins/guests/darwin/cap/insert_public_key.rb +0 -33
- data/plugins/guests/darwin/cap/mount_nfs_folder.rb +0 -37
- data/plugins/guests/darwin/cap/remove_public_key.rb +0 -21
- data/plugins/guests/fedora/cap/change_host_name.rb +0 -29
- data/plugins/guests/fedora/cap/configure_networks.rb +0 -135
- data/plugins/guests/fedora/cap/network_scripts_dir.rb +0 -15
- data/plugins/guests/freebsd/cap/halt.rb +0 -16
- data/plugins/guests/freebsd/cap/insert_public_key.rb +0 -34
- data/plugins/guests/freebsd/cap/mount_nfs_folder.rb +0 -24
- data/plugins/guests/freebsd/cap/remove_public_key.rb +0 -21
- data/plugins/guests/funtoo/cap/change_host_name.rb +0 -17
- data/plugins/guests/linux/cap/insert_public_key.rb +0 -31
- data/plugins/guests/linux/cap/mount_nfs.rb +0 -50
- data/plugins/guests/linux/cap/nfs_client.rb +0 -11
- data/plugins/guests/linux/cap/remove_public_key.rb +0 -24
- data/plugins/guests/netbsd/cap/insert_public_key.rb +0 -21
- data/plugins/guests/netbsd/cap/mount_nfs_folder.rb +0 -17
- data/plugins/guests/netbsd/cap/remove_public_key.rb +0 -21
- data/plugins/guests/openbsd/cap/halt.rb +0 -16
- data/plugins/guests/openbsd/cap/insert_public_key.rb +0 -21
- data/plugins/guests/openbsd/cap/mount_nfs_folder.rb +0 -14
- data/plugins/guests/openbsd/cap/remove_public_key.rb +0 -21
- data/plugins/guests/ubuntu/cap/change_host_name.rb +0 -52
- data/templates/guests/fedora/network_dhcp.erb +0 -6
- data/templates/guests/fedora/network_static.erb +0 -16
- data/test/unit/plugins/guests/freebsd/cap/mount_nfs_folder_test.rb +0 -53
- data/test/unit/plugins/guests/ubuntu/cap/change_host_name_test.rb +0 -42
- data/test/unit/templates/guests/fedora/network_dhcp_test.rb +0 -21
- data/test/unit/templates/guests/fedora/network_static6_test.rb +0 -25
- data/test/unit/templates/guests/fedora/network_static_test.rb +0 -71
@@ -0,0 +1,133 @@
|
|
1
|
+
require 'English'
|
2
|
+
|
3
|
+
require 'listen/version'
|
4
|
+
|
5
|
+
require 'listen/backend'
|
6
|
+
|
7
|
+
require 'listen/silencer'
|
8
|
+
require 'listen/silencer/controller'
|
9
|
+
|
10
|
+
require 'listen/queue_optimizer'
|
11
|
+
|
12
|
+
require 'listen/fsm'
|
13
|
+
|
14
|
+
require 'listen/event/loop'
|
15
|
+
require 'listen/event/queue'
|
16
|
+
require 'listen/event/config'
|
17
|
+
|
18
|
+
require 'listen/listener/config'
|
19
|
+
|
20
|
+
module Listen
|
21
|
+
class Listener
|
22
|
+
# TODO: move the state machine's methods private
|
23
|
+
include Listen::FSM
|
24
|
+
|
25
|
+
# Initializes the directories listener.
|
26
|
+
#
|
27
|
+
# @param [String] directory the directories to listen to
|
28
|
+
# @param [Hash] options the listen options (see Listen::Listener::Options)
|
29
|
+
#
|
30
|
+
# @yield [modified, added, removed] the changed files
|
31
|
+
# @yieldparam [Array<String>] modified the list of modified files
|
32
|
+
# @yieldparam [Array<String>] added the list of added files
|
33
|
+
# @yieldparam [Array<String>] removed the list of removed files
|
34
|
+
#
|
35
|
+
def initialize(*dirs, &block)
|
36
|
+
options = dirs.last.is_a?(Hash) ? dirs.pop : {}
|
37
|
+
|
38
|
+
@config = Config.new(options)
|
39
|
+
|
40
|
+
eq_config = Event::Queue::Config.new(@config.relative?)
|
41
|
+
queue = Event::Queue.new(eq_config) { @processor.wakeup_on_event }
|
42
|
+
|
43
|
+
silencer = Silencer.new
|
44
|
+
rules = @config.silencer_rules
|
45
|
+
@silencer_controller = Silencer::Controller.new(silencer, rules)
|
46
|
+
|
47
|
+
@backend = Backend.new(dirs, queue, silencer, @config)
|
48
|
+
|
49
|
+
optimizer_config = QueueOptimizer::Config.new(@backend, silencer)
|
50
|
+
|
51
|
+
pconfig = Event::Config.new(
|
52
|
+
self,
|
53
|
+
queue,
|
54
|
+
QueueOptimizer.new(optimizer_config),
|
55
|
+
@backend.min_delay_between_events,
|
56
|
+
&block)
|
57
|
+
|
58
|
+
@processor = Event::Loop.new(pconfig)
|
59
|
+
|
60
|
+
super() # FSM
|
61
|
+
end
|
62
|
+
|
63
|
+
default_state :initializing
|
64
|
+
|
65
|
+
state :initializing, to: [:backend_started, :stopped]
|
66
|
+
|
67
|
+
state :backend_started, to: [:frontend_ready, :stopped] do
|
68
|
+
backend.start
|
69
|
+
end
|
70
|
+
|
71
|
+
state :frontend_ready, to: [:processing_events, :stopped] do
|
72
|
+
processor.setup
|
73
|
+
end
|
74
|
+
|
75
|
+
state :processing_events, to: [:paused, :stopped] do
|
76
|
+
processor.resume
|
77
|
+
end
|
78
|
+
|
79
|
+
state :paused, to: [:processing_events, :stopped] do
|
80
|
+
processor.pause
|
81
|
+
end
|
82
|
+
|
83
|
+
state :stopped, to: [:backend_started] do
|
84
|
+
backend.stop # should be before processor.teardown to halt events ASAP
|
85
|
+
processor.teardown
|
86
|
+
end
|
87
|
+
|
88
|
+
# Starts processing events and starts adapters
|
89
|
+
# or resumes invoking callbacks if paused
|
90
|
+
def start
|
91
|
+
transition :backend_started if state == :initializing
|
92
|
+
transition :frontend_ready if state == :backend_started
|
93
|
+
transition :processing_events if state == :frontend_ready
|
94
|
+
transition :processing_events if state == :paused
|
95
|
+
end
|
96
|
+
|
97
|
+
# Stops both listening for events and processing them
|
98
|
+
def stop
|
99
|
+
transition :stopped
|
100
|
+
end
|
101
|
+
|
102
|
+
# Stops invoking callbacks (messages pile up)
|
103
|
+
def pause
|
104
|
+
transition :paused
|
105
|
+
end
|
106
|
+
|
107
|
+
# processing means callbacks are called
|
108
|
+
def processing?
|
109
|
+
state == :processing_events
|
110
|
+
end
|
111
|
+
|
112
|
+
def paused?
|
113
|
+
state == :paused
|
114
|
+
end
|
115
|
+
|
116
|
+
def ignore(regexps)
|
117
|
+
@silencer_controller.append_ignores(regexps)
|
118
|
+
end
|
119
|
+
|
120
|
+
def ignore!(regexps)
|
121
|
+
@silencer_controller.replace_with_bang_ignores(regexps)
|
122
|
+
end
|
123
|
+
|
124
|
+
def only(regexps)
|
125
|
+
@silencer_controller.replace_with_only(regexps)
|
126
|
+
end
|
127
|
+
|
128
|
+
private
|
129
|
+
|
130
|
+
attr_reader :processor
|
131
|
+
attr_reader :backend
|
132
|
+
end
|
133
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Listen
|
2
|
+
def self.logger
|
3
|
+
@logger ||= nil
|
4
|
+
end
|
5
|
+
|
6
|
+
def self.logger=(logger)
|
7
|
+
@logger = logger
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.setup_default_logger_if_unset
|
11
|
+
self.logger ||= ::Logger.new(STDERR).tap do |logger|
|
12
|
+
debugging = ENV['LISTEN_GEM_DEBUGGING']
|
13
|
+
logger.level =
|
14
|
+
case debugging.to_s
|
15
|
+
when /2/
|
16
|
+
::Logger::DEBUG
|
17
|
+
when /true|yes|1/i
|
18
|
+
::Logger::INFO
|
19
|
+
else
|
20
|
+
::Logger::ERROR
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
class Logger
|
26
|
+
[:fatal, :error, :warn, :info, :debug].each do |meth|
|
27
|
+
define_singleton_method(meth) do |*args, &block|
|
28
|
+
Listen.logger.public_send(meth, *args, &block) if Listen.logger
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Listen
|
2
|
+
class Options
|
3
|
+
def initialize(opts, defaults)
|
4
|
+
@options = {}
|
5
|
+
given_options = opts.dup
|
6
|
+
defaults.keys.each do |key|
|
7
|
+
@options[key] = given_options.delete(key) || defaults[key]
|
8
|
+
end
|
9
|
+
|
10
|
+
return if given_options.empty?
|
11
|
+
|
12
|
+
msg = "Unknown options: #{given_options.inspect}"
|
13
|
+
Listen::Logger.warn msg
|
14
|
+
fail msg
|
15
|
+
end
|
16
|
+
|
17
|
+
def method_missing(name, *_)
|
18
|
+
return @options[name] if @options.key?(name)
|
19
|
+
msg = "Bad option: #{name.inspect} (valid:#{@options.keys.inspect})"
|
20
|
+
fail NameError, msg
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,132 @@
|
|
1
|
+
module Listen
|
2
|
+
class QueueOptimizer
|
3
|
+
class Config
|
4
|
+
def initialize(adapter_class, silencer)
|
5
|
+
@adapter_class = adapter_class
|
6
|
+
@silencer = silencer
|
7
|
+
end
|
8
|
+
|
9
|
+
def exist?(path)
|
10
|
+
Pathname(path).exist?
|
11
|
+
end
|
12
|
+
|
13
|
+
def silenced?(path, type)
|
14
|
+
@silencer.silenced?(path, type)
|
15
|
+
end
|
16
|
+
|
17
|
+
def debug(*args, &block)
|
18
|
+
Listen.logger.debug(*args, &block)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def smoosh_changes(changes)
|
23
|
+
# TODO: adapter could be nil at this point (shutdown)
|
24
|
+
cookies = changes.group_by do |_, _, _, _, options|
|
25
|
+
(options || {})[:cookie]
|
26
|
+
end
|
27
|
+
_squash_changes(_reinterpret_related_changes(cookies))
|
28
|
+
end
|
29
|
+
|
30
|
+
def initialize(config)
|
31
|
+
@config = config
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
|
36
|
+
attr_reader :config
|
37
|
+
|
38
|
+
# groups changes into the expected structure expected by
|
39
|
+
# clients
|
40
|
+
def _squash_changes(changes)
|
41
|
+
# We combine here for backward compatibility
|
42
|
+
# Newer clients should receive dir and path separately
|
43
|
+
changes = changes.map { |change, dir, path| [change, dir + path] }
|
44
|
+
|
45
|
+
actions = changes.group_by(&:last).map do |path, action_list|
|
46
|
+
[_logical_action_for(path, action_list.map(&:first)), path.to_s]
|
47
|
+
end
|
48
|
+
|
49
|
+
config.debug("listen: raw changes: #{actions.inspect}")
|
50
|
+
|
51
|
+
{ modified: [], added: [], removed: [] }.tap do |squashed|
|
52
|
+
actions.each do |type, path|
|
53
|
+
squashed[type] << path unless type.nil?
|
54
|
+
end
|
55
|
+
config.debug("listen: final changes: #{squashed.inspect}")
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def _logical_action_for(path, actions)
|
60
|
+
actions << :added if actions.delete(:moved_to)
|
61
|
+
actions << :removed if actions.delete(:moved_from)
|
62
|
+
|
63
|
+
modified = actions.detect { |x| x == :modified }
|
64
|
+
_calculate_add_remove_difference(actions, path, modified)
|
65
|
+
end
|
66
|
+
|
67
|
+
def _calculate_add_remove_difference(actions, path, default_if_exists)
|
68
|
+
added = actions.count { |x| x == :added }
|
69
|
+
removed = actions.count { |x| x == :removed }
|
70
|
+
diff = added - removed
|
71
|
+
|
72
|
+
# TODO: avoid checking if path exists and instead assume the events are
|
73
|
+
# in order (if last is :removed, it doesn't exist, etc.)
|
74
|
+
if config.exist?(path)
|
75
|
+
if diff > 0
|
76
|
+
:added
|
77
|
+
elsif diff.zero? && added > 0
|
78
|
+
:modified
|
79
|
+
else
|
80
|
+
default_if_exists
|
81
|
+
end
|
82
|
+
else
|
83
|
+
diff < 0 ? :removed : nil
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# remove extraneous rb-inotify events, keeping them only if it's a possible
|
88
|
+
# editor rename() call (e.g. Kate and Sublime)
|
89
|
+
def _reinterpret_related_changes(cookies)
|
90
|
+
table = { moved_to: :added, moved_from: :removed }
|
91
|
+
cookies.flat_map do |_, changes|
|
92
|
+
data = _detect_possible_editor_save(changes)
|
93
|
+
if data
|
94
|
+
to_dir, to_file = data
|
95
|
+
[[:modified, to_dir, to_file]]
|
96
|
+
else
|
97
|
+
not_silenced = changes.reject do |type, _, _, path, _|
|
98
|
+
config.silenced?(Pathname(path), type)
|
99
|
+
end
|
100
|
+
not_silenced.map do |_, change, dir, path, _|
|
101
|
+
[table.fetch(change, change), dir, path]
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
def _detect_possible_editor_save(changes)
|
108
|
+
return unless changes.size == 2
|
109
|
+
|
110
|
+
from_type = from_change = from = nil
|
111
|
+
to_type = to_change = to_dir = to = nil
|
112
|
+
|
113
|
+
changes.each do |data|
|
114
|
+
case data[1]
|
115
|
+
when :moved_from
|
116
|
+
from_type, from_change, _, from, = data
|
117
|
+
when :moved_to
|
118
|
+
to_type, to_change, to_dir, to, = data
|
119
|
+
else
|
120
|
+
return nil
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
return unless from && to
|
125
|
+
|
126
|
+
# Expect an ignored moved_from and non-ignored moved_to
|
127
|
+
# to qualify as an "editor modify"
|
128
|
+
return unless config.silenced?(Pathname(from), from_type)
|
129
|
+
config.silenced?(Pathname(to), to_type) ? nil : [to_dir, to]
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module Listen
|
2
|
+
# @private api
|
3
|
+
class Record
|
4
|
+
# Represents a directory entry (dir or file)
|
5
|
+
class Entry
|
6
|
+
# file: "/home/me/watched_dir", "app/models", "foo.rb"
|
7
|
+
# dir, "/home/me/watched_dir", "."
|
8
|
+
def initialize(root, relative, name = nil)
|
9
|
+
@root = root
|
10
|
+
@relative = relative
|
11
|
+
@name = name
|
12
|
+
end
|
13
|
+
|
14
|
+
attr_reader :root, :relative, :name
|
15
|
+
|
16
|
+
def children
|
17
|
+
child_relative = _join
|
18
|
+
(_entries(sys_path) - %w(. ..)).map do |name|
|
19
|
+
Entry.new(@root, child_relative, name)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def meta
|
24
|
+
lstat = ::File.lstat(sys_path)
|
25
|
+
{ mtime: lstat.mtime.to_f, mode: lstat.mode }
|
26
|
+
end
|
27
|
+
|
28
|
+
# record hash is e.g.
|
29
|
+
# if @record["/home/me/watched_dir"]["project/app/models"]["foo.rb"]
|
30
|
+
# if @record["/home/me/watched_dir"]["project/app"]["models"]
|
31
|
+
# record_dir_key is "project/app/models"
|
32
|
+
def record_dir_key
|
33
|
+
::File.join(*[@relative, @name].compact)
|
34
|
+
end
|
35
|
+
|
36
|
+
def sys_path
|
37
|
+
# Use full path in case someone uses chdir
|
38
|
+
::File.join(*[@root, @relative, @name].compact)
|
39
|
+
end
|
40
|
+
|
41
|
+
def real_path
|
42
|
+
@real_path ||= ::File.realpath(sys_path)
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def _join
|
48
|
+
args = [@relative, @name].compact
|
49
|
+
args.empty? ? nil : ::File.join(*args)
|
50
|
+
end
|
51
|
+
|
52
|
+
def _entries(dir)
|
53
|
+
return Dir.entries(dir) unless RUBY_ENGINE == 'jruby'
|
54
|
+
|
55
|
+
# JRuby inconsistency workaround, see:
|
56
|
+
# https://github.com/jruby/jruby/issues/3840
|
57
|
+
exists = ::File.exist?(dir)
|
58
|
+
directory = ::File.directory?(dir)
|
59
|
+
return Dir.entries(dir) unless exists && !directory
|
60
|
+
raise Errno::ENOTDIR, dir
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'set'
|
2
|
+
|
3
|
+
module Listen
|
4
|
+
# @private api
|
5
|
+
class Record
|
6
|
+
class SymlinkDetector
|
7
|
+
WIKI = 'https://github.com/guard/listen/wiki/Duplicate-directory-errors'.freeze
|
8
|
+
|
9
|
+
SYMLINK_LOOP_ERROR = <<-EOS.freeze
|
10
|
+
** ERROR: directory is already being watched! **
|
11
|
+
|
12
|
+
Directory: %s
|
13
|
+
|
14
|
+
is already being watched through: %s
|
15
|
+
|
16
|
+
MORE INFO: #{WIKI}
|
17
|
+
EOS
|
18
|
+
|
19
|
+
class Error < RuntimeError
|
20
|
+
end
|
21
|
+
|
22
|
+
def initialize
|
23
|
+
@real_dirs = Set.new
|
24
|
+
end
|
25
|
+
|
26
|
+
def verify_unwatched!(entry)
|
27
|
+
real_path = entry.real_path
|
28
|
+
@real_dirs.add?(real_path) || _fail(entry.sys_path, real_path)
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def _fail(symlinked, real_path)
|
34
|
+
STDERR.puts format(SYMLINK_LOOP_ERROR, symlinked, real_path)
|
35
|
+
fail Error, 'Failed due to looped symlinks'
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,118 @@
|
|
1
|
+
require 'thread'
|
2
|
+
require 'listen/record/entry'
|
3
|
+
require 'listen/record/symlink_detector'
|
4
|
+
|
5
|
+
module Listen
|
6
|
+
class Record
|
7
|
+
# TODO: one Record object per watched directory?
|
8
|
+
# TODO: deprecate
|
9
|
+
|
10
|
+
attr_reader :root
|
11
|
+
def initialize(directory)
|
12
|
+
@tree = _auto_hash
|
13
|
+
@root = directory.to_s
|
14
|
+
end
|
15
|
+
|
16
|
+
def add_dir(rel_path)
|
17
|
+
return if [nil, '', '.'].include? rel_path
|
18
|
+
@tree[rel_path] ||= {}
|
19
|
+
end
|
20
|
+
|
21
|
+
def update_file(rel_path, data)
|
22
|
+
dirname, basename = Pathname(rel_path).split.map(&:to_s)
|
23
|
+
_fast_update_file(dirname, basename, data)
|
24
|
+
end
|
25
|
+
|
26
|
+
def unset_path(rel_path)
|
27
|
+
dirname, basename = Pathname(rel_path).split.map(&:to_s)
|
28
|
+
_fast_unset_path(dirname, basename)
|
29
|
+
end
|
30
|
+
|
31
|
+
def file_data(rel_path)
|
32
|
+
dirname, basename = Pathname(rel_path).split.map(&:to_s)
|
33
|
+
if [nil, '', '.'].include? dirname
|
34
|
+
tree[basename] ||= {}
|
35
|
+
tree[basename].dup
|
36
|
+
else
|
37
|
+
tree[dirname] ||= {}
|
38
|
+
tree[dirname][basename] ||= {}
|
39
|
+
tree[dirname][basename].dup
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def dir_entries(rel_path)
|
44
|
+
subtree =
|
45
|
+
if [nil, '', '.'].include? rel_path.to_s
|
46
|
+
tree
|
47
|
+
else
|
48
|
+
tree[rel_path.to_s] ||= _auto_hash
|
49
|
+
tree[rel_path.to_s]
|
50
|
+
end
|
51
|
+
|
52
|
+
result = {}
|
53
|
+
subtree.each do |key, values|
|
54
|
+
# only get data for file entries
|
55
|
+
result[key] = values.key?(:mtime) ? values : {}
|
56
|
+
end
|
57
|
+
result
|
58
|
+
end
|
59
|
+
|
60
|
+
def build
|
61
|
+
@tree = _auto_hash
|
62
|
+
# TODO: test with a file name given
|
63
|
+
# TODO: test other permissions
|
64
|
+
# TODO: test with mixed encoding
|
65
|
+
symlink_detector = SymlinkDetector.new
|
66
|
+
remaining = ::Queue.new
|
67
|
+
remaining << Entry.new(root, nil, nil)
|
68
|
+
_fast_build_dir(remaining, symlink_detector) until remaining.empty?
|
69
|
+
end
|
70
|
+
|
71
|
+
private
|
72
|
+
|
73
|
+
def _auto_hash
|
74
|
+
Hash.new { |h, k| h[k] = Hash.new }
|
75
|
+
end
|
76
|
+
|
77
|
+
attr_reader :tree
|
78
|
+
|
79
|
+
def _fast_update_file(dirname, basename, data)
|
80
|
+
if [nil, '', '.'].include? dirname
|
81
|
+
tree[basename] = (tree[basename] || {}).merge(data)
|
82
|
+
else
|
83
|
+
tree[dirname] ||= {}
|
84
|
+
tree[dirname][basename] = (tree[dirname][basename] || {}).merge(data)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
def _fast_unset_path(dirname, basename)
|
89
|
+
# this may need to be reworked to properly remove
|
90
|
+
# entries from a tree, without adding non-existing dirs to the record
|
91
|
+
if [nil, '', '.'].include? dirname
|
92
|
+
return unless tree.key?(basename)
|
93
|
+
tree.delete(basename)
|
94
|
+
else
|
95
|
+
return unless tree.key?(dirname)
|
96
|
+
tree[dirname].delete(basename)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
def _fast_build_dir(remaining, symlink_detector)
|
101
|
+
entry = remaining.pop
|
102
|
+
children = entry.children # NOTE: children() implicitly tests if dir
|
103
|
+
symlink_detector.verify_unwatched!(entry)
|
104
|
+
children.each { |child| remaining << child }
|
105
|
+
add_dir(entry.record_dir_key)
|
106
|
+
rescue Errno::ENOTDIR
|
107
|
+
_fast_try_file(entry)
|
108
|
+
rescue SystemCallError, SymlinkDetector::Error
|
109
|
+
_fast_unset_path(entry.relative, entry.name)
|
110
|
+
end
|
111
|
+
|
112
|
+
def _fast_try_file(entry)
|
113
|
+
_fast_update_file(entry.relative, entry.name, entry.meta)
|
114
|
+
rescue SystemCallError
|
115
|
+
_fast_unset_path(entry.relative, entry.name)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|