def array(self, directories):
if not self.has_arrays():<EOL><INDENT>raise NotImplementedError('<STR_LIT>'<EOL>'<STR_LIT>' % vars(self))<EOL><DEDENT>hrule = '<STR_LIT:#>'+<NUM_LIT>*'<STR_LIT:->'<EOL>lines = [<EOL>'<STR_LIT>',<EOL>hrule,<EOL>'<STR_LIT>',<EOL>self.array_flag(directories),<EOL>hrule,<EOL>'<STR_LIT>',<EOL>'<STR_LIT>']<EOL>for i,dirname in enumerate(asiterable(directories)):<EOL><INDENT>idx = i+<NUM_LIT:1>   <EOL>lines.append('<STR_LIT>'.format(**vars()))<EOL><DEDENT>lines.extend([<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'.format(**vars(self)),<EOL>'<STR_LIT>',<EOL>hrule,<EOL>'<STR_LIT>'<EOL>])<EOL>return "<STR_LIT:\n>".join(lines)<EOL>
Return multiline string for simple array jobs over *directories*.

        .. Warning:: The string is in ``bash`` and hence the template must also
                     be ``bash`` (and *not* ``csh`` or ``sh``).