vagrant-vmm 1.0.5 → 1.0.7

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2MxOTVlODQ2ZTQwYTM4ZDdjNWFkMzE1ZWY0NmYyYTU3YTgxMmY2ZQ==
4
+ MTZiMjk0ZTljNmZhYjRmNDZmZjllMjdkMzZlNDAwODQxZDA4OGU4YQ==
5
5
  data.tar.gz: !binary |-
6
- ODQ3Y2IyYzVhNzEyMjkyY2U0OTk4YjE3NWI2Zjc5ZTg0MGVjNTdiYQ==
6
+ ODNmYTg0MzNlMjdhM2QxODVhZGZmMzgxYjhmMWE3YWQwODAxMGQ2Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjYzNDIwNzVmYzhmY2YzZmUwMzc1YTJjOTdiNTU2YjM0NTFiYTNmZDg2ZDY1
10
- OWM1YjU2Y2FjNjgzZDI3OTYxNGY5YjVlNWIyOGViYmQ4ZWFjYmM2MzM4NWI4
11
- MjVjZWZiMTA4ZDVjN2VkNjNiOGU1MWEzZjc1ODUzMGYxM2M2YzQ=
9
+ YmJkM2JiYzA4YTc0MTcxYTE0OWIyOGE1MWQ3Mzk5YWQ0OWMwYTNiYmE3YTFm
10
+ ZTk5MDQwOWUxODJiYzllNmIzYjczYWQyZmY2NzA3MTliNDhiYzM5OGU4ZjAz
11
+ YmRkZGQ4MjJhNTA5YmJjOTE0ZjA4ODg1MDkyMTMxNzg1MDRjNmM=
12
12
  data.tar.gz: !binary |-
13
- YjM4MjFhZDE5NGMzODczNzA5Y2Q2ZDAwMzk5Yjk5ZjRmNDdmNjIzYTlkZDli
14
- MzdmZmM1ZGQ2MDhjNTgyMTg1YTE3OWI4MWM5N2Q5YTcwYjVjZDczNzc5NmY2
15
- YjRlMjliY2IyYjk0ZDk3MWVmZWU0NjhkMjAzYjc4Y2E1MTY0ZTM=
13
+ OGUzN2U1OTBhNzI5MThiNGJiNWQyNzA4YWY1MzUxODRiY2U3Nzk0ZWU5MDdh
14
+ NjhiNDUwMDZjOTEwZjQ1ZWI2ZmZlN2RiZTU1ZjJlZTA1ZGIxMWRlZjdlNDk2
15
+ Zjg1YTk4ZDhmMDg4Y2ZlMGEyMWUwYTNjNGE0OWNiOWM3MzAzOTk=
@@ -31,10 +31,13 @@ $script_block = {
31
31
  {
32
32
  $ip = $ad.IPv4Addresses[0]
33
33
  } else {
34
- $ips = [System.Net.Dns]::GetHostAddresses($vm.ComputerNameString)
35
- if ( $ips.count -gt 0 )
36
- {
37
- $ip = $ips[0].IPAddressToString
34
+ try {
35
+ $ips = [System.Net.Dns]::GetHostAddresses($vm.ComputerNameString)
36
+ if ( $ips.count -gt 0 )
37
+ {
38
+ $ip = $ips[0].IPAddressToString
39
+ }
40
+ }catch{
38
41
  }
39
42
  }
40
43
  Write-progress -Activity "Trying to get IP from $($vm.ComputerNameString)" -PercentComplete $($tries*100/$timeout) -Status "Try: $tries"
@@ -144,12 +144,12 @@ if ( $sync_required )
144
144
  Write-host "$(&hostname) :: Creating fileshare on the remote host in $fileshare_dest, granting access to Everyone"
145
145
  $shr = New-SmbShare -Name "vagrant-sync" -Temporary -Path $fileshare_dest
146
146
  }
147
- $g_info = Grant-SmbShareAccess -InputObject $shr -AccountName Everyone -AccessRight Full -Force -Confirm
147
+ $g_info = Grant-SmbShareAccess -InputObject $shr -AccountName "$($env:USERDOMAIN)\$($env:USERNAME)" -AccessRight Full -Force
148
148
  }
149
149
 
150
150
  # get access to the fileshare from the current machine
151
151
  Write-host "Getting access from the current machine to the created fileshare (\\$vm_address\vagrant-sync)"
152
- $vagrant_sync_drive = New-PSDrive -Name 'V' -PSProvider 'FileSystem' -Root "\\$vm_address\vagrant-sync"
152
+ $vagrant_sync_drive = New-PSDrive -Name 'V' -PSProvider 'FileSystem' -Root "\\$vm_address\vagrant-sync" -Credential $creds_to_vm
153
153
 
154
154
  Write-host "Syncing files to fileshare..."
155
155
  foreach ( $hst_path in $copy_files.Keys )
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VMM
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vmm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - jarig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler