Sha256: 41f5c4bef67cd0b2eff2d24ff3faeff1904189b7ed217a2cb23095a11ea1ab66

Contents?: true

Size: 454 Bytes

Versions: 10

Compression:

Stored size: 454 Bytes

Contents

require 'dep_analyzer'

# :stopdoc:

class HomebrewAnalyzer < DepAnalyzer
  def installed
    # don't cache so it updates every delete
    puts "scanning installed ports"
    `brew list`.scan(/\S+/).map { |s| s.split.first }
  end

  def outdated
    # don't cache so it updates every delete
    puts "scanning outdated ports"
    `brew outdated`.split(/\n/).map { |s| s.split.first }
  end

  def deps port
    `brew deps #{port}`.scan(/\S+/)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
graph-2.9.1 lib/homebrew_analyzer.rb
graph-2.9.0 lib/homebrew_analyzer.rb
graph-2.8.2 lib/homebrew_analyzer.rb
graph-2.8.1 lib/homebrew_analyzer.rb
graph-2.8.0 lib/homebrew_analyzer.rb
graph-2.7.1 lib/homebrew_analyzer.rb
graph-2.7.0 lib/homebrew_analyzer.rb
graph-2.6.0 lib/homebrew_analyzer.rb
graph-2.5.3 lib/homebrew_analyzer.rb
graph-2.5.2 lib/homebrew_analyzer.rb