2010-08-05 14:41:35 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
require 'optparse'
|
2010-11-11 02:56:30 +00:00
|
|
|
require 'set'
|
2010-11-14 23:42:06 +00:00
|
|
|
require 'fileutils'
|
2010-08-05 14:41:35 +00:00
|
|
|
|
2010-08-06 00:49:12 +00:00
|
|
|
# Informal Spec:
|
|
|
|
#
|
|
|
|
# A User may have multiple Repositories
|
|
|
|
# A Repositories contains Packages
|
|
|
|
#
|
|
|
|
# A User will search for a repository giving a name and optional version
|
|
|
|
# Each Repository will be scanned for matching Packages
|
|
|
|
# If only one Package matches, that Package will be opened
|
|
|
|
# If more than one Package matches, then the user will be prompted to pick one
|
|
|
|
# While any two Packages share the same name their parent dir is appended
|
2010-08-17 04:23:42 +00:00
|
|
|
# If no Repository matches, then qwandry will exit with a 404 (repo not found)
|
2010-08-06 00:49:12 +00:00
|
|
|
#
|
|
|
|
module Qwandry
|
2010-11-09 05:02:43 +00:00
|
|
|
autoload :Launcher, "qwandry/launcher"
|
|
|
|
autoload :Repository, "qwandry/repository"
|
|
|
|
autoload :FlatRepository, "qwandry/flat_repository"
|
|
|
|
autoload :LibraryRepository, "qwandry/library_repository"
|
|
|
|
autoload :Package, "qwandry/package"
|
2010-08-06 00:49:12 +00:00
|
|
|
end
|