in pygenie/jobs/sqoop.py [0:0]
def _options_file(self):
"""Takes specified options and creates a string for the options file."""
opts_file = ""
for flag in [f for f in self._command_options.keys() if f != '-D']:
for name, value in self._command_options[flag].items():
if value is not None:
value = text_type(value).replace('\n', ' ')
opts_file = "{opts}{flag}{name}{value}\n" \
.format(opts=opts_file,
flag=flag,
name=name,
value="\n'{}'".format(value) if value is not None else '')
return opts_file