# File lib/puppet/provider/package/fink.rb, line 24 24: def install 25: self.run_preseed if @resource[:responsefile] 26: should = @resource.should(:ensure) 27: 28: str = @resource[:name] 29: case should 30: when true, false, Symbol 31: # pass 32: else 33: # Add the package version 34: str += "=#{should}" 35: end 36: cmd = %w{-b -q -y} 37: 38: keep = "" 39: 40: cmd << :install << str 41: 42: finkcmd(cmd) 43: end