class Knife::Pkg::PlatformFamily

Public Class Methods

map_to_pkg_ctrl(name) click to toggle source
# File lib/knife-pkg/platform_family.rb, line 5
def map_to_pkg_ctrl(name)
  case name
  when 'debian'
    'apt'
  when 'rhel', 'fedora'
    'yum'
  else
    'unknown'
  end
end