boxen 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/boxen.gemspec +1 -1
- data/lib/boxen/puppeteer.rb +2 -8
- metadata +1 -1
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 = "0.3.
|
5
|
+
gem.version = "0.3.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/puppeteer.rb
CHANGED
@@ -12,15 +12,11 @@ module Boxen
|
|
12
12
|
@config = config
|
13
13
|
end
|
14
14
|
|
15
|
-
def caffeinate
|
16
|
-
"/usr/bin/caffeinate -dis"
|
17
|
-
end
|
18
|
-
|
19
15
|
def command
|
20
16
|
manifest = "#{config.repodir}/manifests/site.pp"
|
21
17
|
puppet = "#{config.repodir}/bin/puppet"
|
22
18
|
|
23
|
-
[
|
19
|
+
[puppet, "apply", flags, manifest].flatten
|
24
20
|
end
|
25
21
|
|
26
22
|
def flags
|
@@ -73,9 +69,7 @@ module Boxen
|
|
73
69
|
|
74
70
|
ENV["GITHUB_API_TOKEN"] = config.token
|
75
71
|
|
76
|
-
|
77
|
-
unless system caffeinate,
|
78
|
-
librarian, "install", "--path=#{config.repodir}/shared"
|
72
|
+
unless system librarian, "install", "--path=#{config.repodir}/shared"
|
79
73
|
abort "Can't run Puppet, fetching dependencies with librarian failed."
|
80
74
|
end
|
81
75
|
end
|