Sha256: b6b5e42ad636171fbeb5d09c77540c33dbe8680e6d190732a095ec6bc8309efa

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

#!/usr/bin/env ruby

require "rails_finder"

def print_help
  puts <<END
Finds Rails applications in the given directory and reports their
version numbers. If no directory is given, uses the current.
END
  puts "\n\tusage: find_rails [directory]"
end

if ARGV.any? { |a| a == "-h" || a == "--help" }
  print_help
  exit
end

RailsFinder.run(ARGV.first || Dir.pwd)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_finder-0.0.1 bin/find_rails