File: error.rb

package info (click to toggle)
flycheck 31-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,660 kB
  • sloc: lisp: 11,831; python: 729; makefile: 243; cpp: 23; ruby: 23; ada: 17; f90: 16; xml: 14; erlang: 14; ansic: 12; haskell: 12; sh: 10; php: 9; perl: 7; fortran: 3; sql: 1
file content (14 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# FC002: Avoid string interpolation where not required
package "mysql-server" do
  version "#{node['mysql']['version']}"
  action :install
end

# FC003: Check whether you are running with chef server before using server-specific features
nodes = search(:node, "hostname:[* TO *] AND chef_environment:#{node.chef_environment}")

# FC004: Use a service resource to start and stop services
execute "start-tomcat" do
  command "/etc/init.d/tomcat6 start"
  action :run
end