vagrant-foodtaster-server 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,12 +10,12 @@ module Vagrant
10
10
  require 'sahara/session/virtualbox'
11
11
  rescue LoadError
12
12
  raise RuntimeError, <<-EOT.strip_heredoc
13
- Cannot find `sahara' plugin. Please, make sure that `sahara' plugin is installed using command:
14
- $ vagrant plugin list
13
+ Cannot find `sahara' plugin. Please, make sure that `sahara' plugin is installed using command:
14
+ $ vagrant plugin list
15
15
 
16
- If `sahara' plugin is not installed, install it:
17
- $ vagrant plugin install sahara
18
- EOT
16
+ If `sahara' plugin is not installed, install it:
17
+ $ vagrant plugin install sahara
18
+ EOT
19
19
  end
20
20
  end
21
21
 
@@ -61,6 +61,14 @@ module Vagrant
61
61
  vm = get_vm(vm_name)
62
62
 
63
63
  sahara_for(vm).rollback
64
+
65
+ # wait for SSH connection
66
+ # workaround for MacOS issue
67
+ retry_number = 0
68
+ while !vm.communicate.ready? && retry_number < 20
69
+ sleep 0.5
70
+ retry_number += 1
71
+ end
64
72
  end
65
73
 
66
74
  def shutdown_vm(vm_name)
@@ -1,7 +1,7 @@
1
1
  module Vagrant
2
2
  module Foodtaster
3
3
  module Server
4
- VERSION = "0.0.9"
4
+ VERSION = "0.0.10"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vagrant-foodtaster-server
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.9
5
+ version: 0.0.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mike Lapshin
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-12-03 00:00:00.000000000 Z
13
+ date: 2013-12-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  prerelease: false