vagrant-vsphere 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDUwYjY3MTA3OTQ3ZjI2NzhmYTAxMTI0MThlZWQ0ODk0NjA2ZTdlYQ==
5
+ data.tar.gz: !binary |-
6
+ OWU5MmNjZGNiMjQ5MTJiNmY4NDFjY2U2NDc5YzUyNzlmODA2NzEzYQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MDMwYjA0YjYwYmFhMzI4YjIxZWYwYTY0MmUwNzg3YjdjODk2ODI3MWQ3ODZh
10
+ M2VkNTBlMTI1YzNjZWQwMGZiMjI2N2RkOWQzZWRhZDI1YjBiNTQ4YWZkMmI2
11
+ NWI0YmY4ODBlMGZiNWJhNWY5Mjg4NGU1YjYwMDM4YjMyMDI5MzQ=
12
+ data.tar.gz: !binary |-
13
+ YTkwOTRkMDZmNTA0MmI1OWEzMzkwOGYyNDM2Y2YwOThiOTcyZjg5YWExODZl
14
+ MThlZTUyNmU1ODIzMzFmOTEyZTI5MzAwZmY2YzNjNGQwOGIxZWMxNDAwZDU5
15
+ ZjMyMzliYThmYWNkYTc2ZmMyOTBmMDYwNTJlYzkxOTAxMTY2YTE=
data/README.md CHANGED
@@ -11,13 +11,10 @@ This provider is built on top of the [RbVmomi](https://github.com/vmware/rbvmomi
11
11
  * Ruby 1.9+
12
12
  * libxml2, libxml2-dev, libxslt, libxslt-dev
13
13
 
14
- ## Building the gem
14
+ ## Current Version
15
+ **0.5.1**
15
16
 
16
- The gem needs to be built before the provider can be added to Vagrant:
17
-
18
- ```
19
- gem build vSphere.gemspec
20
- ```
17
+ vagrant-vsphere (0.5.1) is available from [RubyGems.org](https://rubygems.org/)
21
18
 
22
19
  ## Installation
23
20
 
@@ -27,7 +24,10 @@ Install using standard Vagrant plugin method:
27
24
  $ vagrant plugin install vagrant-vsphere
28
25
  ```
29
26
 
30
- This command needs to be run in vagrant-vsphere build directory so that vagrant can find the gem.
27
+ This will install the plugin from RubGems.org.
28
+
29
+ Alternatively, you can clone this repository and build the source with `gem build vSphere.gemspec`.
30
+ After the gem is built, run the plugin install command from the build directory.
31
31
 
32
32
  ### Potential Intallation Problems
33
33
 
@@ -99,7 +99,7 @@ This provider has the following settings, all are required unless noted:
99
99
 
100
100
  ### Cloning from a VM rather than a template
101
101
 
102
- To clone from an existing VM rather than a template, set `clone_from_vm` to true. If this value is set, `compute_resource_name` and `resource_pool_name` not required.
102
+ To clone from an existing VM rather than a template, set `clone_from_vm` to true. If this value is set, `compute_resource_name` and `resource_pool_name` are not required.
103
103
 
104
104
  ### Setting a static IP address
105
105
 
@@ -127,6 +127,8 @@ The IP address will only be set if a customization spec name is given. The custo
127
127
  * 0.5.0
128
128
  * Allow setting static ip addresses using Vagrant private networks
129
129
  * Allow cloning from VM or template
130
+ * 0.5.1
131
+ * fix rsync on Windows, adapted from [mitchellh/vagrant-aws#77](https://github.com/mitchellh/vagrant-aws/pull/77)
130
132
 
131
133
  ## Versioning
132
134
 
@@ -140,6 +142,15 @@ This plugin follows the principles of [Semantic Versioning 2.0.0](http://semver.
140
142
  4. Push to the branch (`git push origin my-new-feature`)
141
143
  5. Create new Pull Request
142
144
 
145
+ ### Unit Tests
146
+
147
+ Please run the unit tests to verify your changes. To do this simply run `rake`.
148
+
149
+
150
+ If you don't have rake installed, first install [bundler](http://bundler.io/) and run `bundle install`.
151
+
152
+
153
+
143
154
  ## License
144
155
 
145
156
  GI-Cat Driver is licensed under the MIT license. See [LICENSE.txt][license].
@@ -1,6 +1,7 @@
1
1
  require 'i18n'
2
2
  require "vagrant/util/subprocess"
3
3
  require "vagrant/util/scoped_hash_override"
4
+ require "vagrant/util/which"
4
5
 
5
6
  module VagrantPlugins
6
7
  module VSphere
@@ -25,6 +26,10 @@ module VagrantPlugins
25
26
  # Ignore disabled shared folders
26
27
  next if data[:disabled]
27
28
 
29
+ unless Vagrant::Util::Which.which('rsync')
30
+ env[:ui].warn(I18n.t('errors.rsync_not_found'))
31
+ break
32
+ end
28
33
  hostpath = File.expand_path(data[:hostpath], env[:root_path])
29
34
  guestpath = data[:guestpath]
30
35
 
@@ -32,6 +37,11 @@ module VagrantPlugins
32
37
  # avoid creating an additional directory with rsync
33
38
  hostpath = "#{hostpath}/" if hostpath !~ /\/$/
34
39
 
40
+ # on windows rsync.exe requires cygdrive-style paths
41
+ if Vagrant::Util::Platform.windows?
42
+ hostpath = hostpath.gsub(/^(\w):/) { "/cygdrive/#{$1}" }
43
+ end
44
+
35
45
  env[:ui].info(I18n.t("vsphere.rsync_folder",
36
46
  :hostpath => hostpath,
37
47
  :guestpath => guestpath))
@@ -50,6 +60,12 @@ module VagrantPlugins
50
60
  "#{ssh_info[:username]}@#{ssh_info[:host]}:#{guestpath}"]
51
61
 
52
62
 
63
+ # we need to fix permissions when using rsync.exe on windows, see
64
+ # http://stackoverflow.com/questions/5798807/rsync-permission-denied-created-directories-have-no-permissions
65
+ if Vagrant::Util::Platform.windows?
66
+ command.insert(1, "--chmod", "ugo=rwX")
67
+ end
68
+
53
69
  r = Vagrant::Util::Subprocess.execute(*command)
54
70
  if r.exit_code != 0
55
71
  raise Errors::RsyncError,
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VSphere
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.1'
4
4
  end
5
5
  end
data/locales/en.yml CHANGED
@@ -44,6 +44,10 @@ en:
44
44
  Error: %{stderr}
45
45
  too_many_private_networks: |-
46
46
  There a more private networks configured than can be assigned to the customization spec
47
+ rsync_not_found: |-
48
+ Warning! Folder sync disabled because the rsync binary is
49
+ missing. Make sure rsync is installed and the binary can
50
+ be found in PATH.
47
51
  config:
48
52
  host: |-
49
53
  Configuration must specify a vSphere host
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
5
- prerelease:
4
+ version: 0.5.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Andrew Grauch
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-17 00:00:00.000000000 Z
11
+ date: 2013-10-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - '='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - '='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rbvmomi
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: i18n
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rspec-core
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>='
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rspec-expectations
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ! '>='
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ! '>='
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rspec-mocks
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ! '>='
116
102
  - !ruby/object:Gem::Version
@@ -118,7 +104,6 @@ dependencies:
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ! '>='
124
109
  - !ruby/object:Gem::Version
@@ -172,27 +157,26 @@ files:
172
157
  homepage: ''
173
158
  licenses:
174
159
  - MIT
160
+ metadata: {}
175
161
  post_install_message:
176
162
  rdoc_options: []
177
163
  require_paths:
178
164
  - lib
179
165
  required_ruby_version: !ruby/object:Gem::Requirement
180
- none: false
181
166
  requirements:
182
167
  - - ! '>='
183
168
  - !ruby/object:Gem::Version
184
169
  version: '0'
185
170
  required_rubygems_version: !ruby/object:Gem::Requirement
186
- none: false
187
171
  requirements:
188
172
  - - ! '>='
189
173
  - !ruby/object:Gem::Version
190
174
  version: '0'
191
175
  requirements: []
192
176
  rubyforge_project:
193
- rubygems_version: 1.8.23
177
+ rubygems_version: 2.1.9
194
178
  signing_key:
195
- specification_version: 3
179
+ specification_version: 4
196
180
  summary: VMWare vSphere provider
197
181
  test_files:
198
182
  - spec/action_spec.rb