vagrantup 0.3.3 → 0.3.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7543eaa50faf7b10a508508ea0a9db0336093ff
4
- data.tar.gz: 70d9fd2cd3ec58e6c29b961bf95c8e8a539ae16e
3
+ metadata.gz: 75d7f6caf3965877101637e6f2cb3ee6ced49b1e
4
+ data.tar.gz: 39079d5d36170a7a7102ba6e4afb2c844f7e96b8
5
5
  SHA512:
6
- metadata.gz: dac803378141fc871fdd79ec3698d606d0aab602bd8041a4a55aab3aa9c916d2de99d63518bb929e42f19fc9c565175f1ebf8750042594ca808c56e6db56c82b
7
- data.tar.gz: 5bb1bcf752e9ca7c95af627ee5e319920fb1a88a6e2645e03315dbed077288fabe9d4782518a13f5bd8990fb309f2d53cbf203aa0827975b771a9ef45a84e40f
6
+ metadata.gz: bc84dea264681fd479cf5779eb9b343d5b3bbf923d72d7c41ae865ddd2f4d7aa6cf770278747d170ca514dcd9f6fc4fdc52c480c2ef4a03c58fb4ce8a3b2e77e
7
+ data.tar.gz: 7d345a62e190667a22e6d6f15eb14e96df6a8c840955d5383c28482891fb4654c187a62c383711b044c94c5705c0380c3eed3e40dddc80ad1843ad04064689e2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -42,6 +42,9 @@ module Vagrant
42
42
  # Opens an SSH connection to this environment's virtual machine and yields
43
43
  # a Net::SSH object which can be used to execute remote commands.
44
44
  def execute(opts={})
45
+ # Check the key permissions to avoid SSH hangs
46
+ check_key_permissions(env.config.ssh.private_key_path)
47
+
45
48
  Net::SSH.start(env.config.ssh.host,
46
49
  env.config[:ssh][:username],
47
50
  opts.merge( :port => port,
@@ -85,6 +85,14 @@ class SshTest < Test::Unit::TestCase
85
85
  context "executing ssh commands" do
86
86
  setup do
87
87
  mock_ssh
88
+ @ssh.stubs(:check_key_permissions)
89
+ end
90
+
91
+ should "check key permissions then attempt to start connection" do
92
+ seq = sequence("seq")
93
+ @ssh.expects(:check_key_permissions).with(@env.config.ssh.private_key_path).once.in_sequence(seq)
94
+ Net::SSH.expects(:start).once.in_sequence(seq)
95
+ @ssh.execute
88
96
  end
89
97
 
90
98
  should "call net::ssh.start with the proper names" do
@@ -123,6 +131,7 @@ class SshTest < Test::Unit::TestCase
123
131
  context "checking if host is up" do
124
132
  setup do
125
133
  mock_ssh
134
+ @ssh.stubs(:check_key_permissions)
126
135
  end
127
136
 
128
137
  should "return true if SSH connection works" do
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vagrantup}
8
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mitchell Hashimoto", "John Bender"]
12
- s.date = %q{2010-05-13}
12
+ s.date = %q{2010-05-21}
13
13
  s.default_executable = %q{vagrant}
14
14
  s.description = %q{Vagrant is a tool for building and distributing virtualized development environments.}
15
15
  s.email = ["mitchell.hashimoto@gmail.com", "john.m.bender@gmail.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrantup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hashimoto
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2010-05-13 00:00:00.000000000 Z
12
+ date: 2010-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtualbox