vagrant-nfs_guest 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 0771013396d848986039995c6c141fb2f708e055
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: cb811ecd4363e1f53aa3345e801afc4c9996c867
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 8b009e04c677b333c8ca24203e7f1b0685b59131414428b0fcb652cc0383a89271cd6f6c54f950dac1ca302461bcf59f304650ea83731a906e942d1a12a59d5d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 61f4ea0c2300fcbdbe065bd1c31e5079c5380c5ffa19bf07d97a5f755b04ceca7fdb9921bdd233f55c3701a589ae34e2269c977c0e1c74ac0ee1b290b44264cd
         
     | 
    
        data/.ruby-version
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            ruby-2. 
     | 
| 
      
 1 
     | 
    
         
            +
            ruby-2.3.0
         
     | 
| 
         @@ -19,6 +19,7 @@ require_relative "hosts/linux/plugin" 
     | 
|
| 
       19 
19 
     | 
    
         
             
            require_relative "providers/virtualbox/plugin"
         
     | 
| 
       20 
20 
     | 
    
         
             
            require_relative "providers/parallels/plugin"
         
     | 
| 
       21 
21 
     | 
    
         
             
            require_relative "providers/docker/plugin"
         
     | 
| 
      
 22 
     | 
    
         
            +
            require_relative "providers/lxc/plugin"
         
     | 
| 
       22 
23 
     | 
    
         | 
| 
       23 
24 
     | 
    
         
             
            module VagrantPlugins
         
     | 
| 
       24 
25 
     | 
    
         
             
              module SyncedFolderNFSGuest
         
     | 
| 
         @@ -0,0 +1,23 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            module VagrantPlugins
         
     | 
| 
      
 2 
     | 
    
         
            +
              module SyncedFolderNFSGuest
         
     | 
| 
      
 3 
     | 
    
         
            +
                module ProviderLxc
         
     | 
| 
      
 4 
     | 
    
         
            +
                  module Cap
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            	def self.read_host_ip(machine)
         
     | 
| 
      
 7 
     | 
    
         
            +
                      machine.communicate.execute 'echo $SSH_CLIENT' do |buffer, output|
         
     | 
| 
      
 8 
     | 
    
         
            +
                        return output.chomp.split(' ')[0] if buffer == :stdout
         
     | 
| 
      
 9 
     | 
    
         
            +
            	  end
         
     | 
| 
      
 10 
     | 
    
         
            +
            	end
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
                    def self.nfs_settings(machine)
         
     | 
| 
      
 13 
     | 
    
         
            +
                      host_ip  = self.read_host_ip(machine)
         
     | 
| 
      
 14 
     | 
    
         
            +
                      machine_ip = machine.provider.ssh_info[:host]
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
                      raise Vagrant::Errors::NFSNoHostonlyNetwork if !host_ip || !machine_ip
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
                      return host_ip, machine_ip
         
     | 
| 
      
 19 
     | 
    
         
            +
                    end
         
     | 
| 
      
 20 
     | 
    
         
            +
                  end
         
     | 
| 
      
 21 
     | 
    
         
            +
                end
         
     | 
| 
      
 22 
     | 
    
         
            +
              end
         
     | 
| 
      
 23 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,15 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require "vagrant"
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            module VagrantPlugins
         
     | 
| 
      
 4 
     | 
    
         
            +
              module SyncedFolderNFSGuest
         
     | 
| 
      
 5 
     | 
    
         
            +
                class Plugin < Vagrant.plugin("2")
         
     | 
| 
      
 6 
     | 
    
         
            +
                  name "lxc-provider"
         
     | 
| 
      
 7 
     | 
    
         
            +
                  description "vagrant-lxc provider"
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
                  provider_capability(:lxc, :nfs_settings) do
         
     | 
| 
      
 10 
     | 
    
         
            +
                    require_relative "cap/nfs_settings"
         
     | 
| 
      
 11 
     | 
    
         
            +
                    ProviderLxc::Cap
         
     | 
| 
      
 12 
     | 
    
         
            +
                  end
         
     | 
| 
      
 13 
     | 
    
         
            +
                end
         
     | 
| 
      
 14 
     | 
    
         
            +
              end
         
     | 
| 
      
 15 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: vagrant-nfs_guest
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.10
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Alan Garfield
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2016- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-08-19 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     | 
| 
         @@ -76,6 +76,8 @@ files: 
     | 
|
| 
       76 
76 
     | 
    
         
             
            - lib/vagrant-nfs_guest/plugin.rb
         
     | 
| 
       77 
77 
     | 
    
         
             
            - lib/vagrant-nfs_guest/providers/docker/cap/nfs_settings.rb
         
     | 
| 
       78 
78 
     | 
    
         
             
            - lib/vagrant-nfs_guest/providers/docker/plugin.rb
         
     | 
| 
      
 79 
     | 
    
         
            +
            - lib/vagrant-nfs_guest/providers/lxc/cap/nfs_settings.rb
         
     | 
| 
      
 80 
     | 
    
         
            +
            - lib/vagrant-nfs_guest/providers/lxc/plugin.rb
         
     | 
| 
       79 
81 
     | 
    
         
             
            - lib/vagrant-nfs_guest/providers/parallels/cap/nfs_settings.rb
         
     | 
| 
       80 
82 
     | 
    
         
             
            - lib/vagrant-nfs_guest/providers/parallels/plugin.rb
         
     | 
| 
       81 
83 
     | 
    
         
             
            - lib/vagrant-nfs_guest/providers/virtualbox/cap/nfs_settings.rb
         
     | 
| 
         @@ -105,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       105 
107 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       106 
108 
     | 
    
         
             
            requirements: []
         
     | 
| 
       107 
109 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       108 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 110 
     | 
    
         
            +
            rubygems_version: 2.5.1
         
     | 
| 
       109 
111 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       110 
112 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       111 
113 
     | 
    
         
             
            summary: Adds support for guest nfs exporting of synced folders
         
     |