Sha256: d0239c6797c10925334312550ec857c846b34a555656a91a7f1ec204d1647cb0

Contents?: true

Size: 518 Bytes

Versions: 12

Compression:

Stored size: 518 Bytes

Contents

require 'dep_analyzer'

class FreebsdAnalyzer < DepAnalyzer
  def installed
    # don't cache so it updates every delete
    puts "scanning installed ports"
    `pkg_info`.split(/\n/).map { |s| s.split.first }
  end

  def outdated
    # don't cache so it updates every delete
    puts "scanning outdated ports"
    `pkg_version -vL=`.split(/\n/)[1..-1].map { |s| s.split.first }
  end

  def deps port
    cache("#{port}.deps") {
      `pkg_info -r #{port}`
    }.grep(/Dependency:/).map { |s| s.split[1] }
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
graph-2.5.1 lib/freebsd_analyzer.rb
graph-2.5.0 lib/freebsd_analyzer.rb
graph-2.4.1 lib/freebsd_analyzer.rb
graph-2.4.0 lib/freebsd_analyzer.rb
graph-2.3.1 lib/freebsd_analyzer.rb
graph-2.3.0 lib/freebsd_analyzer.rb
graph-2.2.0 lib/freebsd_analyzer.rb
graph-2.1.0 lib/freebsd_analyzer.rb
graph-2.0.1 lib/freebsd_analyzer.rb
graph-2.0.0 lib/freebsd_analyzer.rb
graph-1.2.0 lib/freebsd_analyzer.rb
graph-1.1.0 lib/freebsd_analyzer.rb