Sha256: 7730712862185e06962ddd4ec6b0385d27e9d32b601d9eeb5d059332e090f431
Contents?: true
Size: 679 Bytes
Versions: 4
Compression:
Stored size: 679 Bytes
Contents
# encoding: UTF-8 require 'fileutils' class Boxafe::Encfs def initialize options = {} @options = options end def command [ encfs_config, @options[:encfs], %/"#{@options[:root]}"/, %/"#{@options[:mount]}"/, extpass, '--', volname ].compact.join ' ' end private def volname %/-ovolname="#{@options[:volume]}"/ end def extpass if @options[:keychain] %*--extpass="security 2>&1 >/dev/null find-generic-password -gl '#{@options[:keychain]}' |grep password|cut -d \\\\\\" -f 2"* else nil end end def encfs_config @options[:encfs_config] ? %/ENCFS6_CONFIG="#{File.expand_path @options[:encfs_config]}"/ : nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
boxafe-0.1.3 | lib/boxafe/encfs.rb |
boxafe-0.1.2 | lib/boxafe/encfs.rb |
boxafe-0.1.1 | lib/boxafe/encfs.rb |
boxafe-0.1.0 | lib/boxafe/encfs.rb |