class Chef::Resource::MacosPkg
Public Instance Methods
pkg_file()
click to toggle source
@return [String] the path to the pkg file
# File lib/chef/resource/macos_pkg.rb, line 99 def pkg_file @pkg_file ||= if new_resource.file.nil? uri = URI.parse(new_resource.source) filename = ::File.basename(uri.path) "#{Chef::Config[:file_cache_path]}/#{filename}" else new_resource.file end end