Module: Libertree::Console
- Defined in:
- lib/libertree/console.rb
Class Method Summary collapse
Class Method Details
.init(db_conf_path = 'database.yaml') ⇒ Object
6 7 8 9 10 |
# File 'lib/libertree/console.rb', line 6 def self.init(db_conf_path='database.yaml') Libertree::DB.load_config db_conf_path Libertree::DB.dbh # connect require 'libertree/model' end |
.start ⇒ Object
12 13 14 15 |
# File 'lib/libertree/console.rb', line 12 def self.start puts "\n== Libertree console ==\n\n" IRB.start end |