File tree Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env rake
2
2
3
- <<<<<<< master
4
3
# Style tests. cookstyle (rubocop) and Foodcritic
5
4
namespace :style do
6
5
begin
7
6
require 'cookstyle'
8
7
require 'rubocop/rake_task'
9
- =======
10
- require 'foodcritic'
11
- require 'rspec/core/rake_task'
12
- require 'rubocop/rake_task'
13
- require 'chef/cookbook/metadata'
14
- >>>>>>> master
15
-
16
8
desc 'Run Ruby style checks'
17
9
RuboCop ::RakeTask . new ( :ruby )
18
10
rescue LoadError => e
36
28
37
29
desc 'Run all style checks'
38
30
task style : [ 'style:chef' , 'style:ruby' ]
31
+ task lint : [ 'style' ]
39
32
40
33
# ChefSpec
41
34
begin
@@ -76,6 +69,8 @@ task default: %w(style spec)
76
69
# Automatically generate a changelog for this project. Only loaded if
77
70
# the necessary gem is installed.
78
71
begin
72
+ require 'chef/cookbook/metadata'
73
+
79
74
# read version from metadata
80
75
metadata = Chef ::Cookbook ::Metadata . new
81
76
metadata . instance_eval ( File . read ( 'metadata.rb' ) )
Original file line number Diff line number Diff line change 21
21
license 'Apache 2.0'
22
22
description 'Configures nginx hardening'
23
23
long_description IO . read ( File . join ( File . dirname ( __FILE__ ) , 'README.md' ) )
24
- <<<<<<< master
25
- version '1.0.0'
26
24
27
- depends 'chef_nginx' , '>= 4.0'
28
- =======
29
- version "1.1.0"
25
+ version "2.0.0"
30
26
31
27
issues_url 'https://github.com/dev-sec/chef-nginx-hardening/issues'
32
28
source_url 'https://github.com/dev-sec/chef-nginx-hardening'
35
31
supports 'ubuntu' , '>= 12.04'
36
32
supports 'centos' , '>= 6.6'
37
33
38
- depends 'chef_nginx'
39
- >>>>>>> master
34
+ depends 'chef_nginx' , '>= 4.0'
40
35
depends 'openssl'
41
36
42
37
recipe 'nginx-hardening::default' , 'configures nginx for hardening'
You can’t perform that action at this time.
0 commit comments