Class: Boxafe::Encfs

Inherits:
Object
  • Object
show all
Defined in:
lib/boxafe/encfs.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Encfs

Returns a new instance of Encfs.


6
7
8
# File 'lib/boxafe/encfs.rb', line 6

def initialize options = {}
  @options = options
end

Instance Method Details

#commandObject


10
11
12
13
14
15
16
17
18
19
20
# File 'lib/boxafe/encfs.rb', line 10

def command
  [
    encfs_config,
    Shellwords.escape(@options[:encfs]),
    Shellwords.escape(absolute_root_dir),
    Shellwords.escape(absolute_mount_dir),
    extpass,
    '--',
    volname
  ].compact.join ' '
end