vagrant 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
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{vagrant}
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
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mitchell Hashimoto
@@ -15,13 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-13 00:00:00 -07:00
18
+ date: 2010-05-21 00:00:00 -07:00
19
19
  default_executable: vagrant
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: virtualbox
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
23
  requirements:
26
24
  - - ~>
27
25
  - !ruby/object:Gem::Version
@@ -30,12 +28,12 @@ dependencies:
30
28
  - 6
31
29
  - 1
32
30
  version: 0.6.1
31
+ requirement: *id001
32
+ prerelease: false
33
+ name: virtualbox
33
34
  type: :runtime
34
- version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
- name: net-ssh
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
36
+ version_requirements: &id002 !ruby/object:Gem::Requirement
39
37
  requirements:
40
38
  - - ">="
41
39
  - !ruby/object:Gem::Version
@@ -44,12 +42,12 @@ dependencies:
44
42
  - 0
45
43
  - 19
46
44
  version: 2.0.19
45
+ requirement: *id002
46
+ prerelease: false
47
+ name: net-ssh
47
48
  type: :runtime
48
- version_requirements: *id002
49
49
  - !ruby/object:Gem::Dependency
50
- name: net-scp
51
- prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
50
+ version_requirements: &id003 !ruby/object:Gem::Requirement
53
51
  requirements:
54
52
  - - ">="
55
53
  - !ruby/object:Gem::Version
@@ -58,12 +56,12 @@ dependencies:
58
56
  - 0
59
57
  - 2
60
58
  version: 1.0.2
59
+ requirement: *id003
60
+ prerelease: false
61
+ name: net-scp
61
62
  type: :runtime
62
- version_requirements: *id003
63
63
  - !ruby/object:Gem::Dependency
64
- name: json
65
- prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
64
+ version_requirements: &id004 !ruby/object:Gem::Requirement
67
65
  requirements:
68
66
  - - ">="
69
67
  - !ruby/object:Gem::Version
@@ -72,12 +70,12 @@ dependencies:
72
70
  - 2
73
71
  - 0
74
72
  version: 1.2.0
73
+ requirement: *id004
74
+ prerelease: false
75
+ name: json
75
76
  type: :runtime
76
- version_requirements: *id004
77
77
  - !ruby/object:Gem::Dependency
78
- name: archive-tar-minitar
79
- prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
78
+ version_requirements: &id005 !ruby/object:Gem::Requirement
81
79
  requirements:
82
80
  - - "="
83
81
  - !ruby/object:Gem::Version
@@ -86,12 +84,12 @@ dependencies:
86
84
  - 5
87
85
  - 2
88
86
  version: 0.5.2
87
+ requirement: *id005
88
+ prerelease: false
89
+ name: archive-tar-minitar
89
90
  type: :runtime
90
- version_requirements: *id005
91
91
  - !ruby/object:Gem::Dependency
92
- name: mario
93
- prerelease: false
94
- requirement: &id006 !ruby/object:Gem::Requirement
92
+ version_requirements: &id006 !ruby/object:Gem::Requirement
95
93
  requirements:
96
94
  - - ~>
97
95
  - !ruby/object:Gem::Version
@@ -100,8 +98,10 @@ dependencies:
100
98
  - 0
101
99
  - 6
102
100
  version: 0.0.6
101
+ requirement: *id006
102
+ prerelease: false
103
+ name: mario
103
104
  type: :runtime
104
- version_requirements: *id006
105
105
  description: Vagrant is a tool for building and distributing virtualized development environments.
106
106
  email:
107
107
  - mitchell.hashimoto@gmail.com