# File lib/puppet/provider/package/ports.rb, line 16 16: def install 17: # -N: install if the package is missing, otherwise upgrade 18: # -M: yes, we're a batch, so don't ask any questions 19: cmd = %w{-N -M BATCH=yes} << @resource[:name] 20: 21: output = portupgrade(*cmd) 22: if output =~ /\*\* No such / 23: raise Puppet::ExecutionFailure, "Could not find package #{@resource[:name]}" 24: end 25: end