':type script_file: ``str``
:keyword script_file: Path to a file containing the script to run.
:type args: ``list``
:keyword args: Optional command line arguments which get passed to the
deployment script file.
:type name: ``str``
:keyword name: Name of the script to upload it as, if not specified,
a random name will be chosen.
:type delete: ``bool``
:keyword delete: Whether to delete the script on completion.'

def __init__(self, script_file, args=None, name=None, delete=False):

    with open(script_file, 'rb') as fp:
        content = fp.read()
    if PY3:
        content = content.decode('utf-8')
    super(ScriptFileDeployment, self).__init__(script=content, args=args, name=name, delete=delete)
