I am working on a recipe and am receiving the following error when running rubocop. I’ve attached my code below as well. Thanks in advance for the help.
ws-query-install.rb:44:25: E: unknown regexp options: w
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
WorkingDirectory=/opt/ws-query
1 directory '/opt/ws-query' do
2 owner 'root'
3 group 'root'
4 mode '0755'
5 action :create
6 end
7 package 'java-1.8.0-openjdk.x86_64' do
8 action :install
9 end
10 template '/opt/ws-query/config.properties' do
11 source 'config.properties.erb'
12 owner 'root'
13 group 'root'
14 mode '0644'
15 end
16 template '/opt/ws-query/ws-query' do
17 source 'ws-query.sh.erb'
18 owner 'root'
19 group 'root'
20 mode '0755'
21 end
22 remote_file '/opt/ws-query/ws-query-1.3.0-SNAPSHOT-jar-with-dependencies.jar' do
23 source 'https://github.cerner.com/ConnectWorks/ws-query/releases'
24 owner 'root'
25 group 'root'
26 mode '0755'
27 action :create
28 end
29 systemd_unit 'ws-query.service' do
30 content
31 [Unit]
32 Description=Production ws-query
33 After=network.target
34 [Service]
35 Type=simple
36 User=wsquery
37 Group=wsquery
38 WorkingDirectory=/opt/ws-query
39 ExecStart=/opt/ws-query/ws-query.sh
40 Restart=on-abort
41 Nice=0
42 LimitNOFILE=16384
43 [Install]
44 WantedBy=multi-user.target
45 EOU
46 action [:create, :enable]
47 end