bozo 0.3.3 → 0.3.4
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/README.md +419 -407
- data/VERSION +1 -1
- data/bin/bozo +8 -8
- data/lib/bozo/bozo.rb +6 -6
- data/lib/bozo/bozo_configuration.rb +299 -299
- data/lib/bozo/class_name_helpers.rb +16 -16
- data/lib/bozo/configuration_error.rb +29 -29
- data/lib/bozo/execution_error.rb +35 -35
- data/lib/bozo/executor.rb +288 -281
- data/lib/bozo/logging.rb +40 -40
- data/lib/bozo/runner.rb +58 -58
- data/lib/bozo/versioning/version.rb +86 -86
- data/lib/bozo/versioning/version_bump_error.rb +29 -29
- data/lib/bozo/versioning/version_bumper.rb +36 -36
- data/lib/bozo.rb +130 -130
- data/test/bozo_configuration_version_tests.rb +41 -41
- data/test/test_helper.rb +2 -2
- data/test/version_bumper_tests.rb +61 -61
- data/test/version_tests.rb +25 -25
- metadata +20 -6
- checksums.yaml +0 -15
@@ -1,30 +1,30 @@
|
|
1
|
-
module Bozo
|
2
|
-
|
3
|
-
# Error raised when a runner or hook finds the configuration or build in an
|
4
|
-
# unexpected state.
|
5
|
-
class ConfigurationError < StandardError
|
6
|
-
|
7
|
-
# The code the program should exit with upon handling this error.
|
8
|
-
attr_reader :exit_code
|
9
|
-
|
10
|
-
# A message explaining the corrective actions someone can take to avoid the
|
11
|
-
# error.
|
12
|
-
attr_reader :message
|
13
|
-
|
14
|
-
# Creates a new instance.
|
15
|
-
#
|
16
|
-
# @param [String] message
|
17
|
-
# A message explaining the corrective actions someone can take to avoid
|
18
|
-
# the error.
|
19
|
-
def initialize(message)
|
20
|
-
@message = message
|
21
|
-
@exit_code = -1
|
22
|
-
end
|
23
|
-
|
24
|
-
def inspect
|
25
|
-
"Configuration error: #{message}"
|
26
|
-
end
|
27
|
-
|
28
|
-
end
|
29
|
-
|
1
|
+
module Bozo
|
2
|
+
|
3
|
+
# Error raised when a runner or hook finds the configuration or build in an
|
4
|
+
# unexpected state.
|
5
|
+
class ConfigurationError < StandardError
|
6
|
+
|
7
|
+
# The code the program should exit with upon handling this error.
|
8
|
+
attr_reader :exit_code
|
9
|
+
|
10
|
+
# A message explaining the corrective actions someone can take to avoid the
|
11
|
+
# error.
|
12
|
+
attr_reader :message
|
13
|
+
|
14
|
+
# Creates a new instance.
|
15
|
+
#
|
16
|
+
# @param [String] message
|
17
|
+
# A message explaining the corrective actions someone can take to avoid
|
18
|
+
# the error.
|
19
|
+
def initialize(message)
|
20
|
+
@message = message
|
21
|
+
@exit_code = -1
|
22
|
+
end
|
23
|
+
|
24
|
+
def inspect
|
25
|
+
"Configuration error: #{message}"
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
30
|
end
|
data/lib/bozo/execution_error.rb
CHANGED
@@ -1,36 +1,36 @@
|
|
1
|
-
module Bozo
|
2
|
-
|
3
|
-
# Error raised when a command line executable does not return an exit code of
|
4
|
-
# zero.
|
5
|
-
class ExecutionError < StandardError
|
6
|
-
|
7
|
-
# The array of parameters that made up the call.
|
8
|
-
attr_reader :command
|
9
|
-
|
10
|
-
# The exit code returned by the command.
|
11
|
-
attr_reader :exit_code
|
12
|
-
|
13
|
-
# The friendly name of the tool that failed.
|
14
|
-
attr_reader :tool
|
15
|
-
|
16
|
-
# Create a new instance.
|
17
|
-
#
|
18
|
-
# @param [Symbol] tool
|
19
|
-
# The friendly name of the tool that failed.
|
20
|
-
# @param [Array] command
|
21
|
-
# The array of parameters that made up the call.
|
22
|
-
# @param [Integer] exit_code
|
23
|
-
# The exit code returned by the command
|
24
|
-
def initialize(tool, command, exit_code)
|
25
|
-
@tool = tool
|
26
|
-
@command = command
|
27
|
-
@exit_code = exit_code
|
28
|
-
end
|
29
|
-
|
30
|
-
def inspect
|
31
|
-
"Execution error: Exit code of #{exit_code} returned from: #{tool} #{command[1..-1].join(' ')}"
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
35
|
-
|
1
|
+
module Bozo
|
2
|
+
|
3
|
+
# Error raised when a command line executable does not return an exit code of
|
4
|
+
# zero.
|
5
|
+
class ExecutionError < StandardError
|
6
|
+
|
7
|
+
# The array of parameters that made up the call.
|
8
|
+
attr_reader :command
|
9
|
+
|
10
|
+
# The exit code returned by the command.
|
11
|
+
attr_reader :exit_code
|
12
|
+
|
13
|
+
# The friendly name of the tool that failed.
|
14
|
+
attr_reader :tool
|
15
|
+
|
16
|
+
# Create a new instance.
|
17
|
+
#
|
18
|
+
# @param [Symbol] tool
|
19
|
+
# The friendly name of the tool that failed.
|
20
|
+
# @param [Array] command
|
21
|
+
# The array of parameters that made up the call.
|
22
|
+
# @param [Integer] exit_code
|
23
|
+
# The exit code returned by the command
|
24
|
+
def initialize(tool, command, exit_code)
|
25
|
+
@tool = tool
|
26
|
+
@command = command
|
27
|
+
@exit_code = exit_code
|
28
|
+
end
|
29
|
+
|
30
|
+
def inspect
|
31
|
+
"Execution error: Exit code of #{exit_code} returned from: #{tool} #{command[1..-1].join(' ')}"
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
36
|
end
|