'Adds the hal deploy statements prior to "apply".'

def add_hal_deploy_script_statements(self, script):

    options = self.options
    type_args = ['--type', options.deploy_spinnaker_type]
    if (options.deploy_spinnaker_type == 'distributed'):
        script.append('if    !    `which    kubectl    >&    /dev/null`;    then    curl    -LO    https://storage.googleapis.com/kubernetes-release/release/$(curl    -s    https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl;    chmod    +x    ./kubectl;    sudo    mv    ./kubectl    /usr/local/bin/kubectl;    fi')
        if options.injected_deploy_spinnaker_account:
            type_args.extend(['--account-name', options.injected_deploy_spinnaker_account])
    script.append('hal    -q    --log=info    config    deploy    edit    {args}'.format(args='    '.join(type_args)))
