boxen 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -14,11 +14,22 @@ Manage Mac development boxes with love (and Puppet).
14
14
  `dev.dnsmasq`.
15
15
 
16
16
  0. Store config, data, and log files in
17
- `$BOXEN_HOME/{config,data,log}. This will normally require
17
+ `$BOXEN_HOME/{config,data,log}`. This will normally require
18
18
  customization of a service's Homebrew formula.
19
19
 
20
20
  Sometimes it's not possible to follow these rules, but try hard.
21
21
 
22
+ ## Projects from the CLI
23
+
24
+ We use a totally awful hack to do from-the-cli project installs of projects.
25
+ We create a file in "$BOXEN_HOME/repodir" called .projects, with a single line.
26
+ That line is made up of projects separated by commas.
27
+ We then read that into a Puppet fact in Puppet-land, and that checks for
28
+ classes that match those project names, and includes them in the catalog.
29
+
30
+ We can't pass a `FACTER_` env var because sudo has `env_reset`
31
+ and we can't just modify the sudoers file due to a chicken-egg problem.
32
+
22
33
  ## Hooks
23
34
 
24
35
  0. All hooks must be in the namespace `Boxen::Hook::MyThing`.
@@ -32,3 +43,4 @@ Sometimes it's not possible to follow these rules, but try hard.
32
43
  ## Contributing
33
44
 
34
45
  Use the OS X system Ruby (1.8.7). Run `script/tests` often. Open PR's.
46
+ Use the CI.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "boxen"
5
- gem.version = "0.7.3"
5
+ gem.version = "0.8.0"
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)."
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.add_dependency "ansi", "~> 1.4"
17
17
  gem.add_dependency "hiera", "~> 1.0.0"
18
18
  gem.add_dependency "highline", "~> 1.6"
19
- gem.add_dependency "json_pure", "~> 1.7"
19
+ gem.add_dependency "json_pure", "~> 1.7.7"
20
20
  gem.add_dependency "librarian-puppet", "~> 0.9"
21
21
  gem.add_dependency "octokit", "~> 1.15"
22
22
  gem.add_dependency "puppet", "~> 3.0"
@@ -262,6 +262,12 @@ module Boxen
262
262
  @user || ENV["USER"]
263
263
  end
264
264
 
265
+ attr_writer :color
266
+
267
+ def color?
268
+ @color
269
+ end
270
+
265
271
  attr_writer :user
266
272
  end
267
273
  end
@@ -32,6 +32,7 @@ module Boxen
32
32
  @disable_services = false
33
33
  @enable_services = false
34
34
  @list_services = false
35
+ @color = true
35
36
 
36
37
  @options = OptionParser.new do |o|
37
38
  o.banner = "Usage: #{File.basename $0} [options] [projects...]\n\n"
@@ -107,6 +108,10 @@ module Boxen
107
108
  o.on "--user USER", "Your local user." do |user|
108
109
  @user = user
109
110
  end
111
+
112
+ o.on "--no-color", "Enable colors." do
113
+ @color = false
114
+ end
110
115
  end
111
116
 
112
117
  parse args.flatten.compact
@@ -126,6 +131,7 @@ module Boxen
126
131
  config.srcdir = srcdir if srcdir
127
132
  config.stealth = stealth?
128
133
  config.user = user if user
134
+ config.color = color?
129
135
 
130
136
  config
131
137
  end
@@ -186,6 +192,10 @@ module Boxen
186
192
  @stealth
187
193
  end
188
194
 
195
+ def color?
196
+ @color
197
+ end
198
+
189
199
  def to_s
190
200
  @options.to_s
191
201
  end
@@ -60,6 +60,8 @@ module Boxen
60
60
  flags << "--debug" if config.debug?
61
61
  flags << "--noop" if config.pretend?
62
62
 
63
+ flags << "--color=false" unless config.color?
64
+
63
65
  flags.flatten
64
66
  end
65
67
 
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 7
8
- - 3
9
- version: 0.7.3
7
+ - 8
8
+ - 0
9
+ version: 0.8.0
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-06 00:00:00 -08:00
18
+ date: 2013-02-13 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -68,7 +68,8 @@ dependencies:
68
68
  segments:
69
69
  - 1
70
70
  - 7
71
- version: "1.7"
71
+ - 7
72
+ version: 1.7.7
72
73
  type: :runtime
73
74
  version_requirements: *id004
74
75
  - !ruby/object:Gem::Dependency