boxen 0.3.2 → 0.3.3
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/cli.rb +7 -6
- 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 = "0.3.
|
5
|
+
gem.version = "0.3.3"
|
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/cli.rb
CHANGED
@@ -55,7 +55,7 @@ module Boxen
|
|
55
55
|
def report(result)
|
56
56
|
return result unless issues?
|
57
57
|
|
58
|
-
if successful_exit_code? result
|
58
|
+
if self.class.successful_exit_code? result
|
59
59
|
reporter.close_failures
|
60
60
|
else
|
61
61
|
warn "Sorry! Creating an issue on #{config.reponame}."
|
@@ -104,15 +104,16 @@ module Boxen
|
|
104
104
|
return status
|
105
105
|
end
|
106
106
|
|
107
|
+
# Puppet's detailed exit codes reserves 2 for a successful run with changes
|
108
|
+
|
109
|
+
def self.successful_exit_code?(code)
|
110
|
+
[0, 2].member? code
|
111
|
+
end
|
112
|
+
|
107
113
|
# Should the result of this run have any effect on GitHub issues?
|
108
114
|
|
109
115
|
def issues?
|
110
116
|
!config.stealth? && !config.pretend? && checkout.master?
|
111
117
|
end
|
112
|
-
|
113
|
-
private
|
114
|
-
def successful_exit_code?(code)
|
115
|
-
[0, 2].member? code
|
116
|
-
end
|
117
118
|
end
|
118
119
|
end
|
metadata
CHANGED