Skip to main content

Chef/Ruby/RequireNetHttps

Cookstyle cops page

The Cookstyle cops department: Chef/Ruby

Enabled by defaultSupports autocorrectionTarget Chef Version
Not EnabledYesAll Versions

net/https is deprecated and just includes net/http and openssl. We should include those directly instead.

Examples

bad

require ’net/https'

good

require ’net/http' require ‘openssl’


## Configurable attributes

<table>
<tbody><tr>
<th>Name</th>
<th>Default value</th>
<th>Configurable values</th>
</tr>
<tr>
<td style="text-align:center">Version Added</td>
<td style="text-align:center"><nil></td>
<td style="text-align:center">String</td>
</tr>
<tr><td style="text-align:center">Include</td>
<td style="text-align:center"><ul>
</ul>
</td>
<td style="text-align:center">Array</td>
</tr></tbody></table>

Thank you for your feedback!

×









Search Results