boxen 2.2.0 → 2.3.0
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.
- checksums.yaml +4 -4
- data/boxen.gemspec +1 -1
- data/lib/boxen/config.rb +8 -0
- data/lib/boxen/flags.rb +10 -0
- data/lib/boxen/puppeteer.rb +4 -0
- data/test/boxen_flags_test.rb +7 -1
- data/test/boxen_puppeteer_test.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55d3bba1ebbc9975446782bba4d3f00e5db6daaa
|
4
|
+
data.tar.gz: 90fa3d4d9ff335e834812af7bc4b882254c0a5e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5be79984b72f8361f3bf1272ebcf6b097dbad929e1c9f6fa25be56a9523feaed6b3ab523e73c90093b62b5b322a4ab07a63dba9744117c0ccb1a859b4cf6a47c
|
7
|
+
data.tar.gz: eb2844ec7921ea6ddf1b1ac5a51bb5a1c499e652720227b0fde87034322ae610436afad0c4a9400a5222a03efd69e669229d31c406df046938ac1ffa5a03a2cf
|
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 = "2.
|
5
|
+
gem.version = "2.3.0"
|
6
6
|
gem.authors = ["John Barnette", "Will Farrington", "David Goodlad"]
|
7
7
|
gem.email = ["jbarnette@github.com", "wfarr@github.com", "dgoodlad@github.com"]
|
8
8
|
gem.description = "Manage Mac development boxes with love (and Puppet)."
|
data/lib/boxen/config.rb
CHANGED
@@ -177,6 +177,14 @@ module Boxen
|
|
177
177
|
|
178
178
|
attr_writer :report
|
179
179
|
|
180
|
+
# Enable generation of dependency graphs.
|
181
|
+
|
182
|
+
def graph?
|
183
|
+
!!@graph
|
184
|
+
end
|
185
|
+
|
186
|
+
attr_writer :graph
|
187
|
+
|
180
188
|
# An Array of Boxen::Project entries, one for each project Boxen
|
181
189
|
# knows how to manage.
|
182
190
|
#
|
data/lib/boxen/flags.rb
CHANGED
@@ -32,6 +32,7 @@ module Boxen
|
|
32
32
|
@pretend = false
|
33
33
|
@profile = false
|
34
34
|
@report = false
|
35
|
+
@graph = false
|
35
36
|
@projects = false
|
36
37
|
@stealth = false
|
37
38
|
@disable_service = false
|
@@ -58,6 +59,10 @@ module Boxen
|
|
58
59
|
@report = true
|
59
60
|
end
|
60
61
|
|
62
|
+
o.on "--graph", "Enable generation of dependency graphs." do
|
63
|
+
@graph = true
|
64
|
+
end
|
65
|
+
|
61
66
|
o.on "--env", "Show useful environment variables." do
|
62
67
|
@env = true
|
63
68
|
end
|
@@ -163,6 +168,7 @@ module Boxen
|
|
163
168
|
config.profile = profile?
|
164
169
|
config.future_parser = future_parser?
|
165
170
|
config.report = report?
|
171
|
+
config.graph = graph?
|
166
172
|
config.srcdir = srcdir if srcdir
|
167
173
|
config.stealth = stealth?
|
168
174
|
config.user = user if user
|
@@ -243,6 +249,10 @@ module Boxen
|
|
243
249
|
@report
|
244
250
|
end
|
245
251
|
|
252
|
+
def graph?
|
253
|
+
@graph
|
254
|
+
end
|
255
|
+
|
246
256
|
def projects?
|
247
257
|
@projects
|
248
258
|
end
|
data/lib/boxen/puppeteer.rb
CHANGED
@@ -61,6 +61,8 @@ module Boxen
|
|
61
61
|
flags << "--no-report" unless config.report?
|
62
62
|
flags << "--detailed-exitcodes"
|
63
63
|
|
64
|
+
flags << "--graph" if config.graph?
|
65
|
+
|
64
66
|
flags << "--show_diff"
|
65
67
|
|
66
68
|
if config.profile?
|
@@ -87,6 +89,8 @@ module Boxen
|
|
87
89
|
|
88
90
|
FileUtils.rm_rf "#{config.puppetdir}/var/reports" if config.report?
|
89
91
|
|
92
|
+
FileUtils.rm_rf "#{config.puppetdir}/var/state/graphs" if config.graph?
|
93
|
+
|
90
94
|
FileUtils.mkdir_p File.dirname config.logfile
|
91
95
|
FileUtils.touch config.logfile
|
92
96
|
|
data/test/boxen_flags_test.rb
CHANGED
@@ -17,6 +17,7 @@ class BoxenFlagsTest < Boxen::Test
|
|
17
17
|
expects(:profile=).with true
|
18
18
|
expects(:future_parser=).with true
|
19
19
|
expects(:report=).with true
|
20
|
+
expects(:graph=).with true
|
20
21
|
expects(:srcdir=).with "srcdir"
|
21
22
|
expects(:stealth=).with true
|
22
23
|
expects(:user=).with "user"
|
@@ -27,7 +28,7 @@ class BoxenFlagsTest < Boxen::Test
|
|
27
28
|
|
28
29
|
flags = Boxen::Flags.new "--debug", "--help", "--login", "login",
|
29
30
|
"--no-fde", "--no-pull", "--no-issue", "--noop",
|
30
|
-
"--pretend", "--profile", "--future-parser", "--report", "--projects",
|
31
|
+
"--pretend", "--profile", "--future-parser", "--report", "--graph", "--projects",
|
31
32
|
"--user", "user", "--homedir", "homedir", "--srcdir", "srcdir",
|
32
33
|
"--logfile", "logfile", "--token", "token"
|
33
34
|
|
@@ -175,6 +176,11 @@ class BoxenFlagsTest < Boxen::Test
|
|
175
176
|
assert flags("--report").report?
|
176
177
|
end
|
177
178
|
|
179
|
+
def test_graph
|
180
|
+
refute flags.graph?
|
181
|
+
assert flags("--graph").graph?
|
182
|
+
end
|
183
|
+
|
178
184
|
def test_projects
|
179
185
|
refute flags.projects?
|
180
186
|
assert flags("--projects").projects?
|
@@ -18,6 +18,7 @@ class BoxenPuppeteerTest < Boxen::Test
|
|
18
18
|
stubs(:debug?).returns true
|
19
19
|
stubs(:pretend?).returns true
|
20
20
|
stubs(:report?).returns false
|
21
|
+
stubs(:graph?).returns false
|
21
22
|
stubs(:color?).returns false
|
22
23
|
end
|
23
24
|
|
@@ -55,6 +56,7 @@ class BoxenPuppeteerTest < Boxen::Test
|
|
55
56
|
stubs(:profile?).returns false
|
56
57
|
stubs(:future_parser?).returns false
|
57
58
|
stubs(:report?).returns false
|
59
|
+
stubs(:graph?).returns false
|
58
60
|
stubs(:puppetdir).returns "puppetdir"
|
59
61
|
stubs(:repodir).returns "test/fixtures/repo"
|
60
62
|
stubs(:color?).returns true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Barnette
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2014-01-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ansi
|