Skip to content

Commit

Permalink
Please rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanor committed Jan 28, 2020
1 parent f63a61a commit 7457de4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ end
RuboCop::RakeTask.new(:rubocop)
FoodCritic::Rake::LintTask.new(:foodcritic)

task default: [:foodcritic, :rubocop, :spec]
task default: %i[foodcritic rubocop spec]
4 changes: 2 additions & 2 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
default['xvfb']['args'] = nil

default['xvfb']['packages']['debian'] =
%w(xfonts-100dpi xfonts-75dpi xfonts-scalable xserver-xorg-core xvfb)
%w[xfonts-100dpi xfonts-75dpi xfonts-scalable xserver-xorg-core xvfb]

default['xvfb']['packages']['rhel'] =
%w(xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 xorg-x11-server-Xvfb mesa-libGL)
%w[xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 xorg-x11-server-Xvfb mesa-libGL]
1 change: 1 addition & 0 deletions libraries/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ def xvfb_systype
return 'systemd' if ::File.exist?('/proc/1/comm') &&
::File.open('/proc/1/comm').gets.chomp == 'systemd'
return 'upstart' if platform?('ubuntu') && ::File.exist?('/sbin/initctl')

'sysvinit'
end
2 changes: 1 addition & 1 deletion recipes/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
end

service 'xvfb' do
action [:enable, :start]
action %i[enable start]
end

0 comments on commit 7457de4

Please sign in to comment.