lib/sportdb.rb in sportdb-0.1.0 vs lib/sportdb.rb in sportdb-0.2.0

- old
+ new

@@ -20,10 +20,11 @@ # our own code require 'sportdb/schema' require 'sportdb/models' require 'sportdb/utils' +require 'sportdb/loader' require 'sportdb/version' require 'sportdb/cli/opts' require 'sportdb/cli/runner' module SportDB @@ -36,9 +37,17 @@ "#{File.expand_path( File.dirname(File.dirname(__FILE__)) )}" end def self.main Runner.new.run(ARGV) + end + + + # load built-in (that is, bundled within the gem) named seeds + # - pass in an array of seed names e.g. [ 'cl/teams', 'cl/2012_13/cl' ] etc. + + def self.load( args ) + Loader.new.run( args ) end end # module SportDB \ No newline at end of file