Class: Lotus::Commands::DB::Console

Inherits:
Abstract
  • Object
show all
Defined in:
lib/lotus/commands/db/console.rb

Overview

Since:

  • 0.1.0

Instance Attribute Summary collapse

Attributes inherited from Abstract

#environment

Instance Method Summary collapse

Constructor Details

#initialize(options, name) ⇒ Console

Returns a new instance of Console.

Since:

  • 0.1.0



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

def initialize(options, name)
  super(options)
  @name        = name
  @env_options = environment.to_options
end

Instance Attribute Details

#env_optionsObject (readonly)

Since:

  • 0.1.0



8
9
10
# File 'lib/lotus/commands/db/console.rb', line 8

def env_options
  @env_options
end

#nameObject (readonly)

Since:

  • 0.1.0



8
9
10
# File 'lib/lotus/commands/db/console.rb', line 8

def name
  @name
end

Instance Method Details

#startObject

Since:

  • 0.1.0



16
17
18
# File 'lib/lotus/commands/db/console.rb', line 16

def start
  exec connection_string
end