Class: Bcdatabase::Commands::Epass

Inherits:
Object
  • Object
show all
Defined in:
lib/bcdatabase/commands/epass.rb

Instance Method Summary collapse

Constructor Details

#initialize(streaming, opts = {}) ⇒ Epass

Returns a new instance of Epass.



7
8
9
10
11
# File 'lib/bcdatabase/commands/epass.rb', line 7

def initialize(streaming, opts={})
  @streaming = streaming
  @echo = opts[:echo].nil? ? false : opts[:echo]
  @hl = HighLine.new($stdin, $stderr)
end

Instance Method Details

#runObject



13
14
15
# File 'lib/bcdatabase/commands/epass.rb', line 13

def run
  @streaming ? streamed : interactive
end