boxafe 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/boxafe/box.rb +3 -3
- data/lib/boxafe.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/boxafe/box.rb
CHANGED
@@ -3,7 +3,7 @@ require 'fileutils'
|
|
3
3
|
|
4
4
|
class Boxafe::Box
|
5
5
|
|
6
|
-
OPTION_KEYS = [ :name, :root, :mount, :volume, :
|
6
|
+
OPTION_KEYS = [ :name, :root, :mount, :volume, :encfs_config, :keychain ]
|
7
7
|
|
8
8
|
def initialize options = {}
|
9
9
|
|
@@ -61,7 +61,7 @@ class Boxafe::Box
|
|
61
61
|
|
62
62
|
s << "\nVolume Name: #{opts[:volume]}"
|
63
63
|
s << "\nKeychain Password: #{opts[:keychain]}" if opts[:keychain]
|
64
|
-
s << "\nEncFS Config: #{opts[:
|
64
|
+
s << "\nEncFS Config: #{opts[:encfs_config]}" if opts[:encfs_config]
|
65
65
|
|
66
66
|
s << "\nCommand: #{Paint[encfs.command, :yellow]}" if verbose
|
67
67
|
end
|
@@ -87,7 +87,7 @@ class Boxafe::Box
|
|
87
87
|
@options.tap do |opts|
|
88
88
|
opts[:root] = File.expand_path opts[:root] || "~/Dropbox/#{opts[:name]}"
|
89
89
|
opts[:mount] = File.expand_path opts[:mount] || "/Volumes/#{opts[:name]}"
|
90
|
-
opts[:
|
90
|
+
opts[:encfs_config] = File.expand_path opts[:encfs_config] if opts[:encfs_config]
|
91
91
|
opts[:volume] ||= opts[:name]
|
92
92
|
opts[:keychain] = opts[:name] if opts[:keychain] == true
|
93
93
|
end
|
data/lib/boxafe.rb
CHANGED