lib/mutx/results/result.rb in mutx-0.1.42 vs lib/mutx/results/result.rb in mutx-0.1.43
- old
+ new
@@ -34,11 +34,12 @@
:application,
:gui_task,
:regex,
:value_for_regex,
:result_value,
- :notified
+ :notified,
+ :file_attached
def initialize data_for_result
Mutx::Support::Log.debug "Result.new => data_for_result => #{data_for_result}" if Mutx::Support::Log
if data_for_result["_id"]
# It comes from mongo because there is a result id
@@ -72,10 +73,11 @@
@console_output = ""
@last_check_time = now_in_seconds
@execution_data = {}
@configuration_values = Mutx::Database::MongoConnector.configuration
@notified = "no"
+ @file_attached = "no"
create_output_dir
end
end
def load_values data
@@ -120,10 +122,11 @@
"execution_data" => execution_data,
"configuration_values" => configuration_values,
"regex" => regex,
"value_for_regex" => value_for_regex,
"result_value" => result_value,
- "notified" => notified
+ "notified" => notified,
+ "file_attached" => file_attached
}
end
def has_started_message?
!@started_message.nil?
\ No newline at end of file