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
|
-
|
4
|
+
MTZiMjk0ZTljNmZhYjRmNDZmZjllMjdkMzZlNDAwODQxZDA4OGU4YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODNmYTg0MzNlMjdhM2QxODVhZGZmMzgxYjhmMWE3YWQwODAxMGQ2Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmJkM2JiYzA4YTc0MTcxYTE0OWIyOGE1MWQ3Mzk5YWQ0OWMwYTNiYmE3YTFm
|
10
|
+
ZTk5MDQwOWUxODJiYzllNmIzYjczYWQyZmY2NzA3MTliNDhiYzM5OGU4ZjAz
|
11
|
+
YmRkZGQ4MjJhNTA5YmJjOTE0ZjA4ODg1MDkyMTMxNzg1MDRjNmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGUzN2U1OTBhNzI5MThiNGJiNWQyNzA4YWY1MzUxODRiY2U3Nzk0ZWU5MDdh
|
14
|
+
NjhiNDUwMDZjOTEwZjQ1ZWI2ZmZlN2RiZTU1ZjJlZTA1ZGIxMWRlZjdlNDk2
|
15
|
+
Zjg1YTk4ZDhmMDg4Y2ZlMGEyMWUwYTNjNGE0OWNiOWM3MzAzOTk=
|
@@ -31,10 +31,13 @@ $script_block = {
|
|
31
31
|
{
|
32
32
|
$ip = $ad.IPv4Addresses[0]
|
33
33
|
} else {
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
|
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 )
|
data/lib/vagrant-vmm/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|