# File lib/puppet/provider/package/sun.rb, line 119 119: def install 120: unless @resource[:source] 121: raise Puppet::Error, "Sun packages must specify a package source" 122: end 123: cmd = [] 124: 125: if @resource[:adminfile] 126: cmd << "-a" << @resource[:adminfile] 127: end 128: 129: if @resource[:responsefile] 130: cmd << "-r" << @resource[:responsefile] 131: end 132: 133: cmd << "-d" << @resource[:source] 134: cmd << "-n" << @resource[:name] 135: 136: pkgadd cmd 137: end