vagrant-openstack-provider 0.3.3 → 0.3.4.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e71fed9f7eb85a0ddb6815003bffffbd48252f97
4
- data.tar.gz: 029ef9a268db83b718c4180bb4ad77a373a26cc9
3
+ metadata.gz: 22cfd63490dd6ae88ae62f3ff27dcb5a86b936c2
4
+ data.tar.gz: 1e8bdb1a7946c5ad1d176613e987aac0e862c62e
5
5
  SHA512:
6
- metadata.gz: e549298e2f8ed8cb2c1f046957821ce74551f9433e3dd0816f4dea993e2ccfc514a653bbe8a63f3dfffeb56e2052cc98d1a0433892c53bd6fce911601d86a657
7
- data.tar.gz: cee5d131e146aa776f7aedcd1efa1dfb9c2fc0f60e0d14d810f4ebd45f698929178d84f7f0aa29bab93d16c16b30dba00f147e4c988367dd18b56aeb583650dd
6
+ metadata.gz: 09d6b747454c925c2563679a76f721d021fa3bc570a49d5aed83d4a06539c10b0e8088d777aa78c864f3e3ee8374283f1350182f29c4cf6e14213224affee642
7
+ data.tar.gz: 6628dcc91c4545d005ff97a5908e0ee776572ee9af26532c0e7cd98c3240d1e1a2a3cbc3118f71a5b34ec1bae1f3b77c9554057c464709604187af48d741ae0e
@@ -101,7 +101,9 @@ module VagrantPlugins
101
101
  key = SSHKey.generate
102
102
  nova = env[:openstack_client].nova
103
103
  generated_keyname = nova.import_keypair(env, key.ssh_public_key)
104
- File.write("#{env[:machine].data_dir}/#{generated_keyname}", key.private_key)
104
+ file_path = "#{env[:machine].data_dir}/#{generated_keyname}"
105
+ File.write(file_path, key.private_key)
106
+ File.chmod(0600, file_path)
105
107
  generated_keyname
106
108
  end
107
109
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Openstack
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.4.pre'
4
4
  end
5
5
  end
@@ -200,6 +200,7 @@ describe VagrantPlugins::Openstack::Action::CreateServer do
200
200
  nova.stub(:import_keypair) { 'my-keypair-imported' }
201
201
  SSHKey.stub(:generate) { ssh_key }
202
202
  File.should_receive(:write).with('/data/dir/my-keypair-imported', 'private key')
203
+ File.should_receive(:chmod).with(0600, '/data/dir/my-keypair-imported')
203
204
  @action.generate_keypair(env).should eq('my-keypair-imported')
204
205
  end
205
206
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-openstack-provider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Giamarchi
@@ -212,9 +212,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
212
212
  version: '0'
213
213
  required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  requirements:
215
- - - '>='
215
+ - - '>'
216
216
  - !ruby/object:Gem::Version
217
- version: '0'
217
+ version: 1.3.1
218
218
  requirements: []
219
219
  rubyforge_project:
220
220
  rubygems_version: 2.0.14