Class: Bcdatabase::CLI

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) encrypt(inputfile = nil, outputfile = nil)



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

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

- (Object) epass(arg = nil)



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

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

- (Object) gen_key(arg = nil)



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

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