lib/cosmos/script/extract.rb in cosmos-3.3.3 vs lib/cosmos/script/extract.rb in cosmos-3.4.0

- old
+ new

@@ -74,11 +74,11 @@ end return [target_name, cmd_name, cmd_params] end - def extract_fields_from_tlm_text (text) + def extract_fields_from_tlm_text(text) split_string = text.split raise "ERROR: Telemetry Item must be specified as 'TargetName PacketName ItemName' : #{text}" if split_string.length != 3 target_name = split_string[0] packet_name = split_string[1] item_name = split_string[2] @@ -94,10 +94,10 @@ value = split_string[4].convert_to_value value = value.remove_quotes if String === value return [target_name, packet_name, item_name, value] end - def extract_fields_from_check_text (text) + def extract_fields_from_check_text(text) split_string = text.split raise "ERROR: Check improperly specified: #{text}" if split_string.length < 3 target_name = split_string[0] packet_name = split_string[1] item_name = split_string[2]