boxen 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/boxen.gemspec +2 -1
- data/lib/boxen/cli.rb +10 -12
- data/lib/boxen/flags.rb +5 -0
- metadata +175 -141
- checksums.yaml +0 -7
- data/lib/boxen/preflight/homebrew.rb +0 -13
- data/test/boxen_preflight_homebrew_test.rb +0 -10
data/boxen.gemspec
CHANGED
@@ -2,12 +2,13 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "boxen"
|
5
|
-
gem.version = "2.7.
|
5
|
+
gem.version = "2.7.1"
|
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)."
|
9
9
|
gem.summary = "You know, for laptops and stuff."
|
10
10
|
gem.homepage = "https://github.com/boxen/boxen"
|
11
|
+
gem.license = 'MIT'
|
11
12
|
|
12
13
|
gem.files = `git ls-files`.split $/
|
13
14
|
gem.test_files = gem.files.grep /^test/
|
data/lib/boxen/cli.rb
CHANGED
@@ -36,27 +36,25 @@ module Boxen
|
|
36
36
|
|
37
37
|
# Apply command-line flags to the config in case we're changing or
|
38
38
|
# overriding anything.
|
39
|
-
|
40
39
|
flags.apply config
|
41
40
|
|
42
|
-
|
43
|
-
|
44
|
-
|
41
|
+
if flags.run?
|
42
|
+
# Run the preflight checks.
|
43
|
+
Boxen::Preflight.run config
|
45
44
|
|
46
|
-
|
47
|
-
|
48
|
-
|
45
|
+
# Save the config for Puppet (and next time).
|
46
|
+
Boxen::Config.save config
|
47
|
+
end
|
49
48
|
|
50
49
|
# Make the magic happen.
|
51
|
-
|
52
50
|
status = Boxen::CLI.new(config, flags).run
|
53
51
|
|
54
|
-
|
55
|
-
|
56
|
-
|
52
|
+
if flags.run?
|
53
|
+
# Run the postflight checks.
|
54
|
+
Boxen::Postflight.run config if status.success?
|
55
|
+
end
|
57
56
|
|
58
57
|
# Return Puppet's exit status.
|
59
|
-
|
60
58
|
return status.code
|
61
59
|
end
|
62
60
|
end
|
data/lib/boxen/flags.rb
CHANGED
@@ -221,6 +221,11 @@ module Boxen
|
|
221
221
|
@list_services
|
222
222
|
end
|
223
223
|
|
224
|
+
def run?
|
225
|
+
!(list_services? || restart_services? || enable_service? || disable_service? ||
|
226
|
+
enable_services? || disable_services? || help?)
|
227
|
+
end
|
228
|
+
|
224
229
|
# Parse `args` as an array of CLI argument Strings. Raises
|
225
230
|
# Boxen::Error if anything goes wrong. Returns `self`.
|
226
231
|
|
metadata
CHANGED
@@ -1,166 +1,192 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxen
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 7
|
9
|
+
- 1
|
10
|
+
version: 2.7.1
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- John Barnette
|
8
14
|
- Will Farrington
|
9
15
|
- David Goodlad
|
10
16
|
autorequire:
|
11
17
|
bindir: bin
|
12
18
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
19
|
+
|
20
|
+
date: 2015-03-10 00:00:00 +00:00
|
21
|
+
default_executable:
|
22
|
+
dependencies:
|
23
|
+
- !ruby/object:Gem::Dependency
|
16
24
|
name: ansi
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
requirements:
|
19
|
-
- - "~>"
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '1.4'
|
22
|
-
type: :runtime
|
23
25
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: '1.0'
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ~>
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: 7
|
32
|
+
segments:
|
33
|
+
- 1
|
34
|
+
- 4
|
35
|
+
version: "1.4"
|
36
36
|
type: :runtime
|
37
|
+
version_requirements: *id001
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: hiera
|
37
40
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '1.6'
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 15
|
47
|
+
segments:
|
48
|
+
- 1
|
49
|
+
- 0
|
50
|
+
version: "1.0"
|
50
51
|
type: :runtime
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: highline
|
51
55
|
prerelease: false
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 1.7.7
|
64
|
-
- - "<"
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: '2.0'
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 3
|
62
|
+
segments:
|
63
|
+
- 1
|
64
|
+
- 6
|
65
|
+
version: "1.6"
|
67
66
|
type: :runtime
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: json_pure
|
68
70
|
prerelease: false
|
69
|
-
|
70
|
-
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
71
74
|
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 5
|
77
|
+
segments:
|
78
|
+
- 1
|
79
|
+
- 7
|
80
|
+
- 7
|
73
81
|
version: 1.7.7
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
- - "~>"
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: 1.0.0
|
82
|
+
- - <
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
hash: 3
|
85
|
+
segments:
|
86
|
+
- 2
|
87
|
+
- 0
|
88
|
+
version: "2.0"
|
84
89
|
type: :runtime
|
90
|
+
version_requirements: *id004
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: librarian-puppet
|
85
93
|
prerelease: false
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
94
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ~>
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 23
|
100
|
+
segments:
|
101
|
+
- 1
|
102
|
+
- 0
|
103
|
+
- 0
|
90
104
|
version: 1.0.0
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: octokit
|
93
|
-
requirement: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - "~>"
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '2.7'
|
98
|
-
- - ">="
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version: 2.7.1
|
101
105
|
type: :runtime
|
106
|
+
version_requirements: *id005
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
name: octokit
|
102
109
|
prerelease: false
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
110
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ~>
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
hash: 13
|
116
|
+
segments:
|
117
|
+
- 2
|
118
|
+
- 7
|
119
|
+
version: "2.7"
|
108
120
|
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
hash: 17
|
123
|
+
segments:
|
124
|
+
- 2
|
125
|
+
- 7
|
126
|
+
- 1
|
110
127
|
version: 2.7.1
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: puppet
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '3.7'
|
118
128
|
type: :runtime
|
129
|
+
version_requirements: *id006
|
130
|
+
- !ruby/object:Gem::Dependency
|
131
|
+
name: puppet
|
119
132
|
prerelease: false
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
133
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
134
|
+
none: false
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
hash: 9
|
139
|
+
segments:
|
140
|
+
- 3
|
141
|
+
- 7
|
142
|
+
version: "3.7"
|
143
|
+
type: :runtime
|
144
|
+
version_requirements: *id007
|
145
|
+
- !ruby/object:Gem::Dependency
|
126
146
|
name: minitest
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - '='
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 4.4.0
|
132
|
-
type: :development
|
133
147
|
prerelease: false
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
148
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
150
|
+
requirements:
|
151
|
+
- - "="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
hash: 47
|
154
|
+
segments:
|
155
|
+
- 4
|
156
|
+
- 4
|
157
|
+
- 0
|
138
158
|
version: 4.4.0
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: mocha
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0.13'
|
146
159
|
type: :development
|
160
|
+
version_requirements: *id008
|
161
|
+
- !ruby/object:Gem::Dependency
|
162
|
+
name: mocha
|
147
163
|
prerelease: false
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
164
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
165
|
+
none: false
|
166
|
+
requirements:
|
167
|
+
- - ~>
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
hash: 17
|
170
|
+
segments:
|
171
|
+
- 0
|
172
|
+
- 13
|
173
|
+
version: "0.13"
|
174
|
+
type: :development
|
175
|
+
version_requirements: *id009
|
153
176
|
description: Manage Mac development boxes with love (and Puppet).
|
154
|
-
email:
|
177
|
+
email:
|
155
178
|
- jbarnette@github.com
|
156
179
|
- wfarr@github.com
|
157
180
|
- dgoodlad@github.com
|
158
181
|
executables: []
|
182
|
+
|
159
183
|
extensions: []
|
184
|
+
|
160
185
|
extra_rdoc_files: []
|
161
|
-
|
162
|
-
|
163
|
-
-
|
186
|
+
|
187
|
+
files:
|
188
|
+
- .gitignore
|
189
|
+
- .travis.yml
|
164
190
|
- Gemfile
|
165
191
|
- LICENSE
|
166
192
|
- README.md
|
@@ -182,7 +208,6 @@ files:
|
|
182
208
|
- lib/boxen/preflight/creds.rb
|
183
209
|
- lib/boxen/preflight/directories.rb
|
184
210
|
- lib/boxen/preflight/etc_my_cnf.rb
|
185
|
-
- lib/boxen/preflight/homebrew.rb
|
186
211
|
- lib/boxen/preflight/identity.rb
|
187
212
|
- lib/boxen/preflight/os.rb
|
188
213
|
- lib/boxen/preflight/rbenv.rb
|
@@ -214,7 +239,6 @@ files:
|
|
214
239
|
- test/boxen_postflight_env_test.rb
|
215
240
|
- test/boxen_preflight_creds_test.rb
|
216
241
|
- test/boxen_preflight_etc_my_cnf_test.rb
|
217
|
-
- test/boxen_preflight_homebrew_test.rb
|
218
242
|
- test/boxen_preflight_rvm_test.rb
|
219
243
|
- test/boxen_project_test.rb
|
220
244
|
- test/boxen_puppeteer_test.rb
|
@@ -224,30 +248,41 @@ files:
|
|
224
248
|
- test/fixtures/repo/modules/projects/manifests/first-project.pp
|
225
249
|
- test/fixtures/repo/modules/projects/manifests/second-project.pp
|
226
250
|
- test/system_timer.rb
|
251
|
+
has_rdoc: true
|
227
252
|
homepage: https://github.com/boxen/boxen
|
228
|
-
licenses:
|
229
|
-
|
253
|
+
licenses:
|
254
|
+
- MIT
|
230
255
|
post_install_message:
|
231
256
|
rdoc_options: []
|
232
|
-
|
257
|
+
|
258
|
+
require_paths:
|
233
259
|
- lib
|
234
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
235
|
-
|
260
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
261
|
+
none: false
|
262
|
+
requirements:
|
236
263
|
- - ">="
|
237
|
-
- !ruby/object:Gem::Version
|
238
|
-
|
239
|
-
|
240
|
-
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
hash: 3
|
266
|
+
segments:
|
267
|
+
- 0
|
268
|
+
version: "0"
|
269
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
270
|
+
none: false
|
271
|
+
requirements:
|
241
272
|
- - ">="
|
242
|
-
- !ruby/object:Gem::Version
|
243
|
-
|
273
|
+
- !ruby/object:Gem::Version
|
274
|
+
hash: 3
|
275
|
+
segments:
|
276
|
+
- 0
|
277
|
+
version: "0"
|
244
278
|
requirements: []
|
279
|
+
|
245
280
|
rubyforge_project:
|
246
|
-
rubygems_version:
|
281
|
+
rubygems_version: 1.6.2
|
247
282
|
signing_key:
|
248
|
-
specification_version:
|
283
|
+
specification_version: 3
|
249
284
|
summary: You know, for laptops and stuff.
|
250
|
-
test_files:
|
285
|
+
test_files:
|
251
286
|
- test/boxen/test.rb
|
252
287
|
- test/boxen_check_test.rb
|
253
288
|
- test/boxen_checkout_test.rb
|
@@ -262,7 +297,6 @@ test_files:
|
|
262
297
|
- test/boxen_postflight_env_test.rb
|
263
298
|
- test/boxen_preflight_creds_test.rb
|
264
299
|
- test/boxen_preflight_etc_my_cnf_test.rb
|
265
|
-
- test/boxen_preflight_homebrew_test.rb
|
266
300
|
- test/boxen_preflight_rvm_test.rb
|
267
301
|
- test/boxen_project_test.rb
|
268
302
|
- test/boxen_puppeteer_test.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 9bfc53dcc3db7db04f55735845b70931be7b5943
|
4
|
-
data.tar.gz: 8c8eef58e18fa06e513542becba1bb1391e6785a
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: e280c3d3fbc06277cdfa95dcbf48c5a227c5c198f1c521f893408cc519373059fe70229e8c4c57851f87d813e6c9d220eeeb55fefd0d8d50ce0234177b2b7257
|
7
|
-
data.tar.gz: 419299a5ea79942c589bdf9a59497283e60c35e464ba852e61918d0b7777ceffa6671f30f8bc989813b81862a47b9bdaefe3d54c625d536c232d313de555bf83
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require "boxen/preflight"
|
2
|
-
|
3
|
-
class Boxen::Preflight::Homebrew < Boxen::Preflight
|
4
|
-
def run
|
5
|
-
warn "You have an existing Homebrew install in /usr/local",
|
6
|
-
"The Boxen provides its own Homebrew, so consider deleting yours.",
|
7
|
-
"Keeping both will confuse many projects."
|
8
|
-
end
|
9
|
-
|
10
|
-
def ok?
|
11
|
-
!File.exist? "/usr/local/Library/Homebrew"
|
12
|
-
end
|
13
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
require 'boxen/test'
|
2
|
-
require 'boxen/preflight/homebrew'
|
3
|
-
|
4
|
-
class BoxenPreflightHomebrewTest < Boxen::Test
|
5
|
-
def test_directory_check
|
6
|
-
preflight = Boxen::Preflight::Homebrew.new(mock('config'))
|
7
|
-
File.expects(:exist?).with("/usr/local/Library/Homebrew").returns(false)
|
8
|
-
assert preflight.ok?
|
9
|
-
end
|
10
|
-
end
|