update sent back to the suspended action
# File lib/smart_proxy_remote_execution_ssh/command_update.rb, line 24 def self.encode_exception(description, exception, fatal = true) ret = [DebugData.new("#{description}\n#{exception.class} #{exception.message}")] ret << StatusData.new('EXCEPTION') if fatal return ret end
# File lib/smart_proxy_remote_execution_ssh/command_update.rb, line 6 def initialize(buffer) @buffer = buffer extract_exit_status end
# File lib/smart_proxy_remote_execution_ssh/command_update.rb, line 20 def buffer_to_hash buffer.map(&:to_hash) end
# File lib/smart_proxy_remote_execution_ssh/command_update.rb, line 11 def extract_exit_status @buffer.delete_if do |data| if data.is_a? StatusData @exit_status = data.data true end end end