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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjI2MDIyNDY4OWIyOGMzMjFkYzUyNDRmZTU2ODY4MjlkMzZmYjNlNA==
4
+ NmIwZGQ4ZTQ4YzUyMjc3NzA1MjliYjFmMjQzZTBiODI5ZWYwZmFhOQ==
5
5
  data.tar.gz: !binary |-
6
- Mzg2OGNhZjQ0ZDMyOWI1YmUzNjE0ZGFiYmFjNzdmYzQyOTI4OGI4NA==
6
+ NWIwNThjODQ2NDkzNWFhNzgyMDYyNzRmNDc2MWJkYzVlNTUyZGY1ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjQ3MWI2YTViZGRhNzdiMjBiNjQzYzYxMjk0NDA2ZTYzZGJkMTk4ZjVkMWNj
10
- OWViOGYyYTRmMzViMmIxOWE2M2ZhMmYwZGM4MDNiMTUzNWM0MTU5ZWZhMzQw
11
- NjdmNjZhM2QwMDFhMWZlMjM0MWVkMDE4MjdiYTRiYjE2ZGE3NTQ=
9
+ OTcxYjY3MWZkOTlkZjhjZGEzMmFiNzUyNjgxYWE1NjRiZjdjMDE2MDNiOWY0
10
+ ZWY3OTE3YjRmNTAxZTE1NDgwZDk1NjlhM2ExOWNkZjgxYjMzM2EwOGE4MmUy
11
+ ZmRlZjk0ZjY4ZTJiYmFiNGQ1ZGE0ZWMzNmVlNTRmMGU2N2ZjZjc=
12
12
  data.tar.gz: !binary |-
13
- YmU3NWYzOGRlMzcxMTAxODdiMjAyZDRkMGEzMWQ1MDBmNmZjMzRiMzMxNzRl
14
- MmJmMDkyZjM3YTI0Y2QzMzRjZDIwZTc2N2IyMTFkY2JmZTZiMWEwZmJlNjIw
15
- ZGJjNzk4NmZiZDM5ODIwNDE5YjRmZTdjYjYwMDg1YmZjNzhiNTQ=
13
+ MWM3ZGFhYWZlZWE5MmM2OTUwNDBkMDgyMzY3ZmVhMmU2NGVhYjJlYmEwNDgy
14
+ MTAzZmE3ZjBmZjFhNTI2OTA4NzQzNTMxMTZmNjE5NjAzMzEzZWFmODhkYTIx
15
+ NTVjYjRmOWJhOTVlMDY2ZDViMWVlYmNlNTJmZjVjOWQ2ZjIyOGI=
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- Travis CI: [![Build Status](https://travis-ci.org/jarig/vagrant-vmm.svg?branch=master)](https://travis-ci.org/jarig/vagrant-vmm)
1
+ |Travis CI|Gem|
2
+ |----|-----|
3
+ | [![Build Status](https://travis-ci.org/jarig/vagrant-vmm.svg?branch=master)](https://travis-ci.org/jarig/vagrant-vmm)|[![Gem Version](https://badge.fury.io/rb/vagrant-vmm.svg)](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 -ne $null )
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 $($env:USERDOMAIN)\$($env:USERNAME)"
145
- $shr = New-SmbShare -Name "vagrant-sync" -Temporary -Path $fileshare_dest -FullAccess "$($env:USERDOMAIN)\$($env:USERNAME)"
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" -Credential $creds_to_vm
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VMM
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
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.3
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-06 00:00:00.000000000 Z
11
+ date: 2015-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler