serverspec 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/serverspec.rb +2 -2
- data/lib/serverspec/backend/ssh.rb +1 -0
- data/lib/serverspec/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Serverspec [![Gem Version](https://badge.fury.io/rb/serverspec.png)](http://badge.fury.io/rb/serverspec) [![BuildStatus](https://secure.travis-ci.org/mizzy/serverspec.png)](http://travis-ci.org/mizzy/serverspec)
|
2
2
|
|
3
|
-
RSpec tests for your servers
|
3
|
+
RSpec tests for your servers configured by Puppet, Chef or anything else
|
4
4
|
|
5
5
|
You can see the details of serverspec on [serverspec.org](http://serverspec.org/).
|
6
6
|
|
data/lib/serverspec.rb
CHANGED
@@ -67,7 +67,7 @@ module RSpec
|
|
67
67
|
exception = example.execution_result[:exception]
|
68
68
|
exception_class_name = exception_class_name_for(exception)
|
69
69
|
output.puts "#{long_padding}#{failure_color("Failure/Error:")} #{failure_color(read_failed_line(exception, example).strip)}"
|
70
|
-
output.puts "#{long_padding}#{failure_color(exception_class_name)}:" unless exception_class_name =~ /RSpec/
|
70
|
+
output.puts "#{long_padding}#{failure_color(exception_class_name)}: #{failure_color(exception.message)}" unless exception_class_name =~ /RSpec/
|
71
71
|
output.puts "#{long_padding} #{failure_color(example.metadata[:command])}"
|
72
72
|
output.puts "#{long_padding} #{failure_color(example.metadata[:stdout])}" if example.metadata[:stdout] != ''
|
73
73
|
|
@@ -81,7 +81,7 @@ module RSpec
|
|
81
81
|
exception = example.execution_result[:exception]
|
82
82
|
exception_class_name = exception_class_name_for(exception)
|
83
83
|
output.puts "#{long_padding}#{failure_color("Failure/Error:")} #{failure_color(read_failed_line(exception, example).strip)}"
|
84
|
-
output.puts "#{long_padding}#{failure_color(exception_class_name)}:" unless exception_class_name =~ /RSpec/
|
84
|
+
output.puts "#{long_padding}#{failure_color(exception_class_name)}: #{failure_color(exception.message)}" unless exception_class_name =~ /RSpec/
|
85
85
|
output.puts "#{long_padding} #{failure_color(example.metadata[:command])}"
|
86
86
|
output.puts "#{long_padding} #{failure_color(example.metadata[:stdout])}" if example.metadata[:stdout] != ''
|
87
87
|
|
@@ -48,6 +48,7 @@ module Serverspec
|
|
48
48
|
abort "FAILED: couldn't execute command (ssh.channel.exec)" if !success
|
49
49
|
channel.on_data do |ch, data|
|
50
50
|
if data =~ /^\[sudo\] password for/
|
51
|
+
abort "Please set sudo password by using SUDO_PASSWORD or ASK_SUDO_PASSWORD environment variable" if RSpec.configuration.sudo_password.nil?
|
51
52
|
channel.send_data "#{RSpec.configuration.sudo_password}\n"
|
52
53
|
else
|
53
54
|
stdout_data += data
|
data/lib/serverspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: net-ssh
|
@@ -323,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
323
323
|
version: '0'
|
324
324
|
requirements: []
|
325
325
|
rubyforge_project:
|
326
|
-
rubygems_version: 1.8.
|
326
|
+
rubygems_version: 1.8.23
|
327
327
|
signing_key:
|
328
328
|
specification_version: 3
|
329
329
|
summary: RSpec tests for your servers provisioned by Puppet, Chef or anything else
|