php-formula/test/integration/default/controls/package_spec.rb
2019-08-14 02:00:08 +11:00

23 lines
361 B
Ruby

control 'Php package' do
title 'should be installed'
pkg_name =
case os[:family]
when 'debian'
case os[:name]
when 'ubuntu'
'php'
when 'debian'
'php7.0'
end
when 'redhat', 'fedora'
'php'
when 'suse'
'php5'
end
describe package(pkg_name) do
it { should be_installed }
end
end