Sha256: 955354d336d17f4a285edfa8a37195a61d466f9c39a59c368ee85c85e179ece0

Contents?: true

Size: 682 Bytes

Versions: 3

Compression:

Stored size: 682 Bytes

Contents

# encoding: utf-8


require 'beerdb/models'   # Note: pull in all required deps via beerdb-models
require 'beerdb/note'     # add extension/addon for notes etc.

require 'webservice'

require 'fetcher'
require 'datafile'

require 'gli'

# our own code

require 'beerdb/cli/version'   ## version always goes first
require 'beerdb/cli/opts'
require 'beerdb/cli/main'


module BeerDb

  def self.main
    exit Tool.new.run(ARGV)
  end

end  # module BeerDb


####
##  used for server/service command
##   "preconfigured" base class for webservice
class BeerDbService < Webservice::Base
  include BeerDb::Models   # e.g. Beer, Brewery, Brand, etc.
end



BeerDb.main  if __FILE__ == $0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beerdb-1.2.0 lib/beerdb.rb
beerdb-1.1.1 lib/beerdb.rb
beerdb-1.1.0 lib/beerdb.rb