Improve `sh' task action error handling:

Handle exit status code in Remote#execute.
This commit is contained in:
Thibault Jouan
2013-08-05 21:03:18 +00:00
parent f10914c7d7
commit 825bdec74d
4 changed files with 39 additions and 6 deletions

View File

@@ -1,8 +1,9 @@
module Producer
module Core
Error = Class.new(StandardError)
ConditionNotMetError = Class.new(Error)
RecipeEvaluationError = Class.new(StandardError)
TaskEvaluationError = Class.new(RecipeEvaluationError)
Error = Class.new(StandardError)
ConditionNotMetError = Class.new(Error)
RecipeEvaluationError = Class.new(StandardError)
TaskEvaluationError = Class.new(RecipeEvaluationError)
RemoteCommandExecutionError = Class.new(Error)
end
end