vagrant-skytap 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: baf5d3c0b7fd0393c8740ccae53bb5f25265b057
4
- data.tar.gz: fa4d72e87ee859399de360dabb0b81431c789005
3
+ metadata.gz: c3f08f87dbf9b39c58d1c7ac1d1351b3ebe41dec
4
+ data.tar.gz: 006b50cbf19f4d81af13616bd06a989b92c89132
5
5
  SHA512:
6
- metadata.gz: 92bdf1421b8320b29235963ca160804ab6c0890f0965187c4e7a9cecd50e551d8d7257f754057195b9ee40f1daacd8c12991ee11216a4d2e1ddacf714584e5ab
7
- data.tar.gz: 7f1d027f8a4909b5da9e3d705f222ec4a2c72f8909f41ae79a3475d74282f106af70a64a95d57b0b9f9f457e9081cf889f05c038451280bd2b3fd2f1e7bc022e
6
+ metadata.gz: 856903a0c6c66cb584ade420ea622497ce8fe07a5054377d113c1a5c1c1d62057b2b7c84c26b47de157a6776eab0ee515ea02bdfac110b043037d191b6d13521
7
+ data.tar.gz: 0c409c6828537eae0b230135ebb6e9507f921422deceb584b6e1be27297df5ed913771400c372776dd02d6ddefd2e18dd13c2a8f3d7e03ca756a3fbdec408312
@@ -1,3 +1,10 @@
1
+ # 0.3.6 (August 2, 2017)
2
+
3
+ * Parameterize some Gemfile entries for testing purposes.
4
+ * Fix bug which limited the number of guest VMs to 3 when the host is also a
5
+ Skytap VM.
6
+ * Fix a bug in timeout error handling.
7
+
1
8
  # 0.3.5 (January 3, 2017)
2
9
 
3
10
  * Increase metadata service timeout, improve logging, handle still more errors (actually
data/Gemfile CHANGED
@@ -2,6 +2,11 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
+ VAGRANT_GEM_TAG = ENV['VAGRANT_GEM_TAG'] || 'v1.7.4'
6
+ # vagrant-spec made a change in 1d09951e which created a dependency conflict
7
+ # in our test environment. For now, default to the preceding revision.
8
+ VAGRANT_SPEC_GEM_REF = ENV['VAGRANT_SPEC_REF'] || '5006bc73'
9
+
5
10
  group :development do
6
11
  # We depend on Vagrant for development, but we don't add it as a
7
12
  # gem dependency because we expect to be installed within the
@@ -9,13 +14,13 @@ group :development do
9
14
  if File.exist?(File.expand_path("../../vagrant", __FILE__))
10
15
  gem 'vagrant', path: "../vagrant"
11
16
  else
12
- gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", :tag => 'v1.7.2'
17
+ gem "vagrant", :git => "git://github.com/mitchellh/vagrant.git", tag: VAGRANT_GEM_TAG
13
18
  end
14
19
 
15
20
  if File.exist?(File.expand_path("../../vagrant-spec", __FILE__))
16
21
  gem 'vagrant-spec', path: "../vagrant-spec"
17
22
  else
18
- gem 'vagrant-spec', git: "https://github.com/mitchellh/vagrant-spec.git"
23
+ gem 'vagrant-spec', git: "https://github.com/mitchellh/vagrant-spec.git", ref: VAGRANT_SPEC_GEM_REF
19
24
  end
20
25
 
21
26
  gem "rspec-expectations", "~> 2.14.0"
@@ -37,7 +37,7 @@ module VagrantPlugins
37
37
 
38
38
  def call(env)
39
39
  unless env[:vagrant_host_vm]
40
- if metadata = env[:machine].provider.capability(:host_metadata)
40
+ if (metadata = env[:machine].provider.host_metadata)
41
41
  # The environment will be lazy loaded
42
42
  env[:vagrant_host_vm] = vm = API::Vm.new(metadata, nil, env)
43
43
  @logger.info("Running Vagrant in a Skytap VM. ID: #{vm.try(:id)}")
@@ -125,7 +125,7 @@ module VagrantPlugins
125
125
  end
126
126
  rescue Timeout::Error => ex
127
127
  raise most_recent_exception if most_recent_exception
128
- raise Errors::OperationFailed, "Timeout exceeded"
128
+ raise Errors::OperationFailed, err: "Timeout exceeded"
129
129
  end
130
130
  end
131
131
 
@@ -26,6 +26,9 @@ require "vagrant"
26
26
  module VagrantPlugins
27
27
  module Skytap
28
28
  class Provider < Vagrant.plugin("2", :provider)
29
+ @@host_metadata = nil
30
+ @@host_metadata_fetch_attempted = false
31
+
29
32
  def initialize(machine)
30
33
  @machine = machine
31
34
  end
@@ -63,6 +66,14 @@ module VagrantPlugins
63
66
  Vagrant::MachineState.new(state_id, short, long)
64
67
  end
65
68
 
69
+ def host_metadata
70
+ unless @@host_metadata_fetch_attempted
71
+ @@host_metadata = capability(:host_metadata)
72
+ @@host_metadata_fetch_attempted = true
73
+ end
74
+ @@host_metadata
75
+ end
76
+
66
77
  def to_s
67
78
  id = @machine.id.nil? ? "new" : @machine.id
68
79
  "Skytap (#{id})"
@@ -22,6 +22,6 @@
22
22
 
23
23
  module VagrantPlugins
24
24
  module Skytap
25
- VERSION = "0.3.5"
25
+ VERSION = "0.3.6"
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-skytap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric True
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-03 00:00:00.000000000 Z
12
+ date: 2017-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure