Module: Pyradise
- Defined in:
- lib/pyradise.rb,
lib/pyradise/cli.rb,
lib/pyradise/i18n.rb,
lib/pyradise/product.rb
Defined Under Namespace
Modules: I18n Classes: Cli, Product
Constant Summary collapse
- DB =
Sequel.connect("sqlite://#{HOME}/py.sqlite3")
- Defaults =
{:rate => 1, :tax => 1.3, :order => :price, :lang => :en_us}
- Options =
Defaults.merge(YAML.load(File.new(HOME + "/conf.yml")))
Class Method Summary collapse
Class Method Details
.start ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/pyradise.rb', line 22 def self.start # require 'pyradise/stat' unless DB.table_exists? :products require 'pyradise/migrate' CreatePyradise.apply DB, :up end require 'pyradise/product' require 'pyradise/i18n' require 'pyradise/cli' end |