Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Protect the ssh test key in case umask does something funky
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Mayer committed Mar 18, 2013
1 parent a203773 commit 45f7ade
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
Expand Up @@ -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

Expand Down

0 comments on commit 45f7ade

Please sign in to comment.