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.
@@ -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
@@ -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