atomic_red_team/atomic_red_team.rb
def add_guid_to_used_guid_file(guid, used_guids_file)
    open(used_guids_file, 'a') { |f|
      raise("the GUID (#{guid}) does not match the required format for the `auto_generated_guid` element") unless /[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}/ =~ guid
      f.puts guid unless !is_unique_guid(guid, used_guids_file)
    }
  end
# add guid to used guid file if it is the proper format and is not already in the file. raises an exception if guid isn't valid
add guid to used guid file if it is the proper format and is not already in the file. raises an exception if guid isn't valid
add guid to used guid file if it is the proper format and is not already in the file . raises an exception if guid isn ' t valid
def add_guid_to_used_guid_file(guid, used_guids_file)
    open(used_guids_file, 'a') { |f|
      raise("the GUID (#{guid}) does not match the required format for the `auto_generated_guid` element") unless /[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}/ =~ guid
      f.puts guid unless !is_unique_guid(guid, used_guids_file)
    }
  end
def add_guid_to_used_guid_file ( guid , used_guids_file ) open ( used_guids_file , 'a' ) { | f | raise ( "the GUID (#{guid}) does not match the required format for the `auto_generated_guid` element" ) unless / [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12} / =~ guid f . puts guid unless ! is_unique_guid ( guid , used_guids_file ) } end
add guid to used guid file if it is the proper format and is not already in the file.
add guid to used guid file if it is the proper format and is not already in the file .
guid
used_guids_file