Sha256: 288d08741aee469ac43f7589a203d85711686331c3026f9ea829301336507bc3

Contents?: true

Size: 541 Bytes

Versions: 2

Compression:

Stored size: 541 Bytes

Contents

#!/usr/bin/env ruby

require "technologist"

def framework_report(title, frameworks)
  return if frameworks.empty?
  puts title
  frameworks.each do |framework|
    puts "* #{framework}"
  end
end

path = ARGV[0] || Dir.pwd

result = Technologist::Repository.new(path)

if result.primary_frameworks.empty? && result.secondary_frameworks.empty?
  puts "No known frameworks could be detected."
else
  framework_report('Primary Frameworks', result.primary_frameworks)
  framework_report('Secondary Frameworks', result.secondary_frameworks)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
technologist-0.4.0 exe/technologist
technologist-0.3.0 exe/technologist