Class: Bcdatabase::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/bcdatabase/cli.rb

Instance Method Summary collapse

Instance Method Details

#encrypt(inputfile = nil, outputfile = nil) ⇒ Object



28
29
30
# File 'lib/bcdatabase/cli.rb', line 28

def encrypt(inputfile=nil, outputfile=nil)
  Commands::Encrypt.new(inputfile, outputfile).run
end

#epass(arg = nil) ⇒ Object



41
42
43
# File 'lib/bcdatabase/cli.rb', line 41

def epass(arg=nil)
  Commands::Epass.new(arg == '-').run
end

#gen_key(arg = nil) ⇒ Object



56
57
58
# File 'lib/bcdatabase/cli.rb', line 56

def gen_key(arg=nil)
  Commands::GenKey.new(arg == '-').run
end