def _copy_deploy_scripts_for_hosts(self, domains):
with LogTask('<STR_LIT>'):<EOL><INDENT>for host_name, host_spec in domains.items():<EOL><INDENT>host_metadata = host_spec.get('<STR_LIT>', {})<EOL>deploy_scripts = self._get_scripts(host_metadata)<EOL>new_scripts = self._copy_delpoy_scripts(deploy_scripts)<EOL>self._set_scripts(<EOL>host_metadata=host_metadata,<EOL>scripts=new_scripts,<EOL>)<EOL><DEDENT><DEDENT>return domains<EOL>
Copy the deploy scripts for all the domains into the prefix scripts dir

Args:
    domains(dict): spec with the domains info as when loaded from the
        initfile

Returns:
    None