lib/lotus/commands/db/console.rb in lotusrb-0.5.0 vs lib/lotus/commands/db/console.rb in lotusrb-0.6.0
- old
+ new
@@ -1,17 +1,17 @@
require 'lotus/utils/class'
+require 'lotus/commands/db/abstract'
module Lotus
module Commands
class DB
- class Console
- attr_reader :name, :env_options, :environment
+ class Console < Abstract
+ attr_reader :name, :env_options
- def initialize(name, environment)
+ def initialize(options, name)
+ super(options)
@name = name
- @environment = environment
@env_options = environment.to_options
- @environment.require_application_environment
end
def start
exec connection_string
end