# File lib/puppet/provider/package/sun.rb, line 115
115:   def install
116:     raise Puppet::Error, "Sun packages must specify a package source" unless @resource[:source]
117:     cmd = []
118: 
119:     cmd << "-a" << @resource[:adminfile] if @resource[:adminfile]
120: 
121:     cmd << "-r" << @resource[:responsefile] if @resource[:responsefile]
122: 
123:     cmd << "-d" << @resource[:source]
124:     cmd << "-n" << @resource[:name]
125: 
126:     pkgadd cmd
127:   end