vagrant-vmm 1.0.3 → 1.0.4
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 +8 -8
- data/README.md +3 -1
- data/lib/vagrant-vmm/scripts/get_network_config.ps1 +1 -11
- data/lib/vagrant-vmm/scripts/sync_folders.ps1 +5 -4
- data/lib/vagrant-vmm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmIwZGQ4ZTQ4YzUyMjc3NzA1MjliYjFmMjQzZTBiODI5ZWYwZmFhOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWIwNThjODQ2NDkzNWFhNzgyMDYyNzRmNDc2MWJkYzVlNTUyZGY1ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTcxYjY3MWZkOTlkZjhjZGEzMmFiNzUyNjgxYWE1NjRiZjdjMDE2MDNiOWY0
|
10
|
+
ZWY3OTE3YjRmNTAxZTE1NDgwZDk1NjlhM2ExOWNkZjgxYjMzM2EwOGE4MmUy
|
11
|
+
ZmRlZjk0ZjY4ZTJiYmFiNGQ1ZGE0ZWMzNmVlNTRmMGU2N2ZjZjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWM3ZGFhYWZlZWE5MmM2OTUwNDBkMDgyMzY3ZmVhMmU2NGVhYjJlYmEwNDgy
|
14
|
+
MTAzZmE3ZjBmZjFhNTI2OTA4NzQzNTMxMTZmNjE5NjAzMzEzZWFmODhkYTIx
|
15
|
+
NTVjYjRmOWJhOTVlMDY2ZDViMWVlYmNlNTJmZjVjOWQ2ZjIyOGI=
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
Travis CI
|
1
|
+
|Travis CI|Gem|
|
2
|
+
|----|-----|
|
3
|
+
| [](https://travis-ci.org/jarig/vagrant-vmm)|[](http://badge.fury.io/rb/vagrant-vmm)|
|
2
4
|
|
3
5
|
# Vagrant Virtual Machine Manager (VMM) Plugin
|
4
6
|
|
@@ -43,24 +43,14 @@ $script_block = {
|
|
43
43
|
#
|
44
44
|
return @{
|
45
45
|
ip = $ip;
|
46
|
-
hostname = $vm.ComputerNameString
|
47
46
|
}
|
48
47
|
}
|
49
48
|
|
50
49
|
$address_info = execute $script_block $vmm_server_address $proxy_server_address
|
51
50
|
$address_to_use = $address_info["ip"]
|
52
51
|
|
53
|
-
if ( $address_to_use -
|
52
|
+
if ( $address_to_use -eq $null )
|
54
53
|
{
|
55
|
-
try
|
56
|
-
{
|
57
|
-
Write-host "Trying to resolve VM hostname($($address_info["hostname"])) from the current machine."
|
58
|
-
[System.Net.Dns]::GetHostAddresses($address_info["hostname"])
|
59
|
-
$address_to_use = $address_info["hostname"]
|
60
|
-
} catch {
|
61
|
-
Write-host "Failed to resolve hostname, so falling back to IP: $address_to_use"
|
62
|
-
}
|
63
|
-
} else {
|
64
54
|
# ask for manual IP entry if timedout
|
65
55
|
Write-host "Couldn't get ip for the VM within given timeout, you can get and specify it manually (or leave blank and vagrant will stop)."
|
66
56
|
$ip = Read-Host 'Enter VM IP address:'
|
@@ -141,17 +141,18 @@ if ( $sync_required )
|
|
141
141
|
$shr = Get-SmbShare -Name "vagrant-sync" -ErrorAction Ignore
|
142
142
|
if ( $shr -eq $null )
|
143
143
|
{
|
144
|
-
Write-host "$(&hostname) :: Creating fileshare on the remote host in $fileshare_dest, granting access to
|
145
|
-
$shr = New-SmbShare -Name "vagrant-sync" -Temporary -Path $fileshare_dest
|
144
|
+
Write-host "$(&hostname) :: Creating fileshare on the remote host in $fileshare_dest, granting access to Everyone"
|
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
148
|
}
|
148
149
|
|
149
150
|
# get access to the fileshare from the current machine
|
150
151
|
Write-host "Getting access from the current machine to the created fileshare (\\$vm_address\vagrant-sync)"
|
151
|
-
$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"
|
152
153
|
|
153
154
|
Write-host "Syncing files to fileshare..."
|
154
|
-
foreach ( $hst_path in $copy_files.Keys)
|
155
|
+
foreach ( $hst_path in $copy_files.Keys )
|
155
156
|
{
|
156
157
|
$current = 0
|
157
158
|
$total = $copy_files[$hst_path].Count
|
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.4
|
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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|