X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=cookbooks%2Fplatform_utils%2Flibraries%2Fpackage_utils.rb;h=fcbc5ad1fc34a27ff7a8713416ede67b8f8624de;hb=5f66da7188ad91c19a7f963dc506aa1e5edf7acb;hp=7360cc04e0279efe6b8667ea5d41fddf99911941;hpb=a1aa9b8e4cf59392eab4c1797c37e67cb35d39a3;p=metasearch%2Fgrid-chef-repo.git diff --git a/cookbooks/platform_utils/libraries/package_utils.rb b/cookbooks/platform_utils/libraries/package_utils.rb index 7360cc0..fcbc5ad 100644 --- a/cookbooks/platform_utils/libraries/package_utils.rb +++ b/cookbooks/platform_utils/libraries/package_utils.rb @@ -22,43 +22,43 @@ module PlatformUtils module PackageUtils def cron_pkg_name case node['platform_family'] - when 'debian'then return 'cron' - when 'rhel' then return 'crontabs' + when 'debian'then 'cron' + when 'rhel' then 'crontabs' end end def cron_serv_name case node['platform_family'] - when 'debian'then return 'cron' - when 'rhel' then return 'crond' + when 'debian'then 'cron' + when 'rhel' then 'crond' end end def httpd_pkg_name case node['platform_family'] - when 'debian'then return 'apache2' - when 'rhel' then return 'httpd' + when 'debian'then 'apache2' + when 'rhel' then 'httpd' end end def httpd_serv_name case node['platform_family'] - when 'debian'then return 'apache2' - when 'rhel' then return 'httpd' + when 'debian'then 'apache2' + when 'rhel' then 'httpd' end end def jsvc_pkg_name case node['platform_family'] - when 'debian' then return 'jsvc' - when 'rhel' then return 'jakarta-commons-daemon-jsvc' + when 'debian' then 'jsvc' + when 'rhel' then 'jakarta-commons-daemon-jsvc' end end def libbz2_pkg_name case node['platform_family'] - when 'debian' then return 'libbz2-1.0' - when 'rhel' then return 'bzip2-libs' + when 'debian' then 'libbz2-1.0' + when 'rhel' then 'bzip2-libs' end end end