Sha256: 011ac729160b2ea3f3a406e23e90957bb505a2700f5ced1453749b2c2e03abae

Contents?: true

Size: 531 Bytes

Versions: 13

Compression:

Stored size: 531 Bytes

Contents

require 'dep_analyzer'

# :stopdoc:

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

13 entries across 13 versions & 1 rubygems

Version Path
graph-2.11.1 lib/freebsd_analyzer.rb
graph-2.11.0 lib/freebsd_analyzer.rb
graph-2.10.0 lib/freebsd_analyzer.rb
graph-2.9.1 lib/freebsd_analyzer.rb
graph-2.9.0 lib/freebsd_analyzer.rb
graph-2.8.2 lib/freebsd_analyzer.rb
graph-2.8.1 lib/freebsd_analyzer.rb
graph-2.8.0 lib/freebsd_analyzer.rb
graph-2.7.1 lib/freebsd_analyzer.rb
graph-2.7.0 lib/freebsd_analyzer.rb
graph-2.6.0 lib/freebsd_analyzer.rb
graph-2.5.3 lib/freebsd_analyzer.rb
graph-2.5.2 lib/freebsd_analyzer.rb