Class: Hanami::Commands::DB::Console

Inherits:
Command
  • Object
show all
Defined in:
lib/hanami/commands/db/console.rb

Instance Method Summary collapse

Methods inherited from Command

inherited

Constructor Details

#initialize(options, name) ⇒ Console

Returns a new instance of Console.



10
11
12
13
# File 'lib/hanami/commands/db/console.rb', line 10

def initialize(options, name)
  super(options)
  @name = name
end

Instance Method Details

#startObject



15
16
17
# File 'lib/hanami/commands/db/console.rb', line 15

def start
  exec console.connection_string
end