summaryrefslogtreecommitdiff
path: root/spec/scripts/ssl-serve.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-04 08:35:04 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-04 08:35:04 -0800
commit938c37c2dd5bff3b888540ae1ae4d2e51b3208d8 (patch)
tree2ee587d74840857a1aaffc09692781d64ebd85ef /spec/scripts/ssl-serve.rb
parentdfeb0a2f8888ea8e1f1860e3da7ad7a1a4dac56f (diff)
downloadchef-lcg/whitespace-style.tar.gz
whitespace fixeslcg/whitespace-style
5533 Style/SpaceInsideHashLiteralBraces 2619 Style/SpaceAroundOperators 2288 Style/EmptyLinesAroundBlockBody 2012 Style/SpaceInsideBlockBraces 1444 Style/AlignHash 1395 Style/SpaceAfterComma 1382 Style/SpaceAroundEqualsInParameterDefault 800 Style/EmptyLinesAroundClassBody 396 Style/IndentationConsistency 354 Style/ExtraSpacing 310 Style/SpaceBeforeBlockBraces 309 Style/EmptyLines 304 Style/TrailingWhitespace 241 Style/MultilineOperationIndentation 230 Style/TrailingBlankLines 219 Style/EmptyLinesAroundModuleBody 212 Style/IndentHash 147 Style/IndentationWidth 120 Style/EmptyLineBetweenDefs 107 Style/SpaceAroundBlockParameters 63 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
Diffstat (limited to 'spec/scripts/ssl-serve.rb')
-rw-r--r--spec/scripts/ssl-serve.rb13
1 files changed, 4 insertions, 9 deletions
diff --git a/spec/scripts/ssl-serve.rb b/spec/scripts/ssl-serve.rb
index 0a2376049b..284c58aa78 100644
--- a/spec/scripts/ssl-serve.rb
+++ b/spec/scripts/ssl-serve.rb
@@ -10,7 +10,6 @@ require "openssl"
require "webrick"
require "webrick/https"
-
$ssl = true
CHEF_SPEC_DATA = File.expand_path("../../data", __FILE__)
@@ -21,14 +20,12 @@ key = OpenSSL::PKey::RSA.new(key_text)
server_opts = {}
if $ssl
-server_opts.merge!( { :SSLEnable => true,
- :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE,
- :SSLCertificate => cert,
- :SSLPrivateKey => key })
+ server_opts.merge!( { :SSLEnable => true,
+ :SSLVerifyClient => OpenSSL::SSL::VERIFY_NONE,
+ :SSLCertificate => cert,
+ :SSLPrivateKey => key })
end
-
-
# 5 == debug, 3 == warning
LOGGER = WEBrick::Log.new(STDOUT, 5)
DEFAULT_OPTIONS = {
@@ -48,5 +45,3 @@ server = WEBrick::HTTPServer.new(webrick_opts)
trap "INT" do server.shutdown end
server.start
-
-