boxen 1.0.0 → 1.0.1
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/boxen.gemspec +1 -1
- data/lib/boxen/config.rb +6 -1
- metadata +3 -3
data/boxen.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "boxen"
|
5
|
-
gem.version = "1.0.
|
5
|
+
gem.version = "1.0.1"
|
6
6
|
gem.authors = ["John Barnette", "Will Farrington"]
|
7
7
|
gem.email = ["jbarnette@github.com", "wfarr@github.com"]
|
8
8
|
gem.description = "Manage Mac development boxes with love (and Puppet)."
|
data/lib/boxen/config.rb
CHANGED
@@ -19,7 +19,7 @@ module Boxen
|
|
19
19
|
attrs = JSON.parse File.read file
|
20
20
|
|
21
21
|
attrs.each do |key, value|
|
22
|
-
if value && config.respond_to?(selector = "#{key}=")
|
22
|
+
if !value.nil? && config.respond_to?(selector = "#{key}=")
|
23
23
|
config.send selector, value
|
24
24
|
end
|
25
25
|
end
|
@@ -40,6 +40,7 @@ module Boxen
|
|
40
40
|
def self.save(config)
|
41
41
|
attrs = {
|
42
42
|
:email => config.email,
|
43
|
+
:fde => config.fde?,
|
43
44
|
:homedir => config.homedir,
|
44
45
|
:login => config.login,
|
45
46
|
:name => config.name,
|
@@ -101,6 +102,10 @@ module Boxen
|
|
101
102
|
# Is full disk encryption required? Default is `true`. Respects
|
102
103
|
# the `BOXEN_NO_FDE` environment variable.
|
103
104
|
|
105
|
+
def fde=(val)
|
106
|
+
@fde = val
|
107
|
+
end
|
108
|
+
|
104
109
|
def fde?
|
105
110
|
!ENV["BOXEN_NO_FDE"] && @fde
|
106
111
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- John Barnette
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-02-
|
18
|
+
date: 2013-02-14 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|