vagrant-vsphere 0.11.0 → 0.12.0

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b849287254d7d458dd01177a712d88b8cda2457
4
- data.tar.gz: 245b4fd9edf27c7be1704bd6130495aa8ad08e73
3
+ metadata.gz: ad726e37d7aedf30c5556291ef19a0076842c5ba
4
+ data.tar.gz: cb50d238059d1b8ed771b6b88648beb7a9f1f62a
5
5
  SHA512:
6
- metadata.gz: b2dbee432c779914179ab77cd29496e701b7355e11c5c13f2cc8c2aed6b1441ecc7e5ecdb7517dc2a31d90597c0c6902bba39dc9c24e9acbdff36c039abc6755
7
- data.tar.gz: 8043c30a3c64943625725d8d0b0b021eab2a2ae5375ca241a56b4824d8dbe6a687f0a118e9bf4bbfaf4aa360b46b1a72e30d3fb9dc79118e1b00d56dee0542d1
6
+ metadata.gz: fe948fcf2c8101cd892a69b27cc62d5d746f5f58a7c22ced118397eb5802d282d1e2d7a62d55a4c83e9d48b733198d8f2003e45b5b9806613bedd6dbade6d9ba
7
+ data.tar.gz: d9cfa4de2c0d21a8e5ffc24cad61d5e791c811ea863a6797a4d6ee190f0ce923311099526822d012912aa4df196644d4ea28e8e0e219bb90568821d6b674ad8d
data/README.md CHANGED
@@ -12,9 +12,9 @@ This provider is built on top of the [RbVmomi](https://github.com/vmware/rbvmomi
12
12
  * libxml2, libxml2-dev, libxslt, libxslt-dev
13
13
 
14
14
  ## Current Version
15
- **0.11.0**
15
+ **0.12.0**
16
16
 
17
- vagrant-vsphere (0.11.0) is available from [RubyGems.org](https://rubygems.org/gems/vagrant-vsphere)
17
+ vagrant-vsphere (0.12.0) is available from [RubyGems.org](https://rubygems.org/gems/vagrant-vsphere)
18
18
 
19
19
  ## Installation
20
20
 
@@ -178,6 +178,8 @@ This is useful if running Vagrant from multiple directories or if multiple machi
178
178
  * follows semvar better, this adds functionality in a backwards compatible way, so bumps the minor. 0.9.0, should have been a major version.
179
179
  * 0.11.0
180
180
  * Create the VM target folder if it doesn't exist #76 marnovdm:feature/create_vm_folder.
181
+ * 0.12.0
182
+ * Use a directory name where Vagrantfile is stored as a prefix for VM name [#82 mkuzmin:name-prefix](https://github.com/nsidc/vagrant-vsphere/pull/82).
181
183
 
182
184
  ## Versioning
183
185
 
@@ -18,7 +18,7 @@ module VagrantPlugins
18
18
  machine = env[:machine]
19
19
  config = machine.provider_config
20
20
  connection = env[:vSphere_connection]
21
- name = get_name machine, config
21
+ name = get_name machine, config, env[:root_path]
22
22
  dc = get_datacenter connection, machine
23
23
  template = dc.find_vm config.template_name
24
24
  raise Errors::VSphereError, :'missing_template' if template.nil?
@@ -118,10 +118,10 @@ module VagrantPlugins
118
118
  location
119
119
  end
120
120
 
121
- def get_name(machine, config)
121
+ def get_name(machine, config, root_path)
122
122
  return config.name unless config.name.nil?
123
123
 
124
- prefix = "#{machine.name}"
124
+ prefix = "#{root_path.basename.to_s}_#{machine.name}"
125
125
  prefix.gsub!(/[^-a-z0-9_\.]/i, "")
126
126
  # milliseconds + random number suffix to allow for simultaneous `vagrant up` of the same box in different dirs
127
127
  prefix + "_#{(Time.now.to_f * 1000.0).to_i}_#{rand(100000)}"
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VSphere
3
- VERSION = '0.11.0'
3
+ VERSION = '0.12.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Grauch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2014-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.2.2
176
+ rubygems_version: 2.0.14
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: VMWare vSphere provider