From 45f7adee71afd0776118b5ec6c138373f152b1ac Mon Sep 17 00:00:00 2001 From: Ken Mayer Date: Mon, 18 Mar 2013 15:32:27 -0700 Subject: [PATCH] Protect the ssh test key in case umask does something funky --- spec/spec_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9decfbb..aa2af96 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -10,7 +10,9 @@ def self.ec2_credentials_present? end def ssh_key_pair_path - File.join(File.dirname(__FILE__), 'fixtures', 'ssh_keys', 'vagrant_test_key') + File.join(File.dirname(__FILE__), 'fixtures', 'ssh_keys', 'vagrant_test_key').tap do |path| + File.chmod(0400, path) + end end end