kitchen-verifier-serverspec 0.5.1 → 0.5.2

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: a067d2b127ace39b0d5301184b0b3a733b0892f3
4
- data.tar.gz: 130ce91416d6c4fed054158aa3c3add6c3632200
3
+ metadata.gz: aad3aa5089f6233a1d51c7ab81a77432a6c1ff41
4
+ data.tar.gz: f3ec2441cb006d1e24e5bf092abd5703a761e065
5
5
  SHA512:
6
- metadata.gz: ac02a4ee402582b8c0fce7c197e0d8685f8b48875f880f1ca5aa3c15ca8b47a0d2e2e81bd2e42e1b073413f2e2a9a56d45ae1b18c72342f441ad241c02f97c44
7
- data.tar.gz: ec8c73f9cb19c7bc1248f6bb4ed26594fbb589e199dffe5213d1eb87d3991fb45b858cd92601733ec752e80c8a9c003dad41c78d2f13a74b9d900ef3cf2f931a
6
+ metadata.gz: f247568a8a02206e18282b7d3930a818f19e331a1129fa4d1cd80ec1e92bf033c4653d0f833f1aeab078d207d7e1ea42c8487cd64f3cdffb8ff5cfbdc0614488
7
+ data.tar.gz: 5eaa111b9cce8190617c1d957639ed8140888ef5bb8b553fdaf618485cec7c2732d04437f3e7199bf92f5bf86ba223ebcd9a27c043595d0a6026c7c12eedfadd
data/README.md CHANGED
@@ -208,9 +208,16 @@ require 'net/ssh'
208
208
 
209
209
  RSpec.configure do |config|
210
210
  set :host, ENV['KITCHEN_HOSTNAME']
211
- # ssh options at http://net-ssh.github.io/ssh/v1/chapter-2.html
212
- # ssh via ssh key
213
- set :ssh_options, :user => ENV['KITCHEN_USERNAME'], :port => ENV['KITCHEN_PORT'], :paranoid => false, :verbose => :error, :host_key => 'ssh-rsa', :keys => [ ENV['KITCHEN_SSH_KEY'] ]
211
+ # ssh options at http://net-ssh.github.io/net-ssh/Net/SSH.html#method-c-start
212
+ # ssh via ssh key (only)
213
+ set :ssh_options,
214
+ :user => ENV['KITCHEN_USERNAME'],
215
+ :port => ENV['KITCHEN_PORT'],
216
+ :auth_methods => [ 'publickey' ],
217
+ :keys => [ ENV['KITCHEN_SSH_KEY'] ],
218
+ :keys_only => true,
219
+ :paranoid => false,
220
+ :verbose => :error
214
221
  set :backend, :ssh
215
222
  set :request_pty, true
216
223
  end
@@ -85,16 +85,12 @@ module Kitchen
85
85
  else
86
86
  <<-INSTALL
87
87
  #{config[:additional_serverspec_command]}
88
- if [ -d #{config[:default_path]} ]; then
89
- cd #{config[:default_path]}
90
- RSPEC_CMD=#{rspec_bash_cmd}
91
- echo $RSPEC_CMD
92
- #{rspec_commands}
93
- #{remove_default_path}
94
- else
95
- echo "ERROR: Default path '#{config[:default_path]}' does not exist"
96
- exit 1
97
- fi
88
+ mkdir -p #{config[:default_path]}
89
+ cd #{config[:default_path]}
90
+ RSPEC_CMD=#{rspec_bash_cmd}
91
+ echo $RSPEC_CMD
92
+ #{rspec_commands}
93
+ #{remove_default_path}
98
94
  INSTALL
99
95
  end
100
96
  elsif custom_serverspec_command
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Verifier
3
- SERVERSPEC_VERSION = '0.5.1'.freeze
3
+ SERVERSPEC_VERSION = '0.5.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-verifier-serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-01 00:00:00.000000000 Z
11
+ date: 2016-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen