def install_package(name, version)
Chef::Log.debug("Options: #{@new_resource.options}")
if @new_resource.options.nil?
run_command_with_systems_locale(
:command => "pkgadd -n -d #{@new_resource.source} all"
)
Chef::Log.debug("Installed package: #{@new_resource.package_name} #{@new_resource.version} from: #{@new_resource.source}")
else
run_command_with_systems_locale(
:command => "pkgadd -n#{expand_options(@new_resource.options)} -d #{@new_resource.source} all"
)
Chef::Log.debug("Installed package: #{@new_resource.package_name} #{@new_resource.version} from: #{@new_resource.source}")
end
end