Giter VIP home page Giter VIP logo

cake.msdeploy's Introduction

Cake.MsDeploy

Cake.MsDeploy is an Addin that extends Cake for executing commands with the MsDeploy.exe (Web Deploy) command line interface (cli). In order to use this extension, MsDeploy v3.6 will already have to be installed on the computer the cake build script is being executed on.

Build Status

AppVeyor

Referencing

You can reference Cake.MsDeploy in your build script as a cake addin:

#addin "Cake.MsDeploy"

or nuget reference:

#addin "nuget:https://www.nuget.org/api/v2?package=Cake.MsDeploy"

Usage

#addin "Cake.MsDeploy"

var target = Argument("target", "Default");

Task("MsDeploy-Package")
  .Does(() =>
{
    MsDeploy(new MsDeploySettings
    {
        Verb = Operation.Sync,
        RetryAttempts = 5,
        RetryInterval = 5000,
        Source = new PackageProvider
        {
            Direction = MsDeploy.Providers.Direction.source,
            Path = "./src/Application.zip"
        },
        Destination = new AutoProvider
        {
            Direction = MsDeploy.Providers.Direction.dest,
            IncludeAcls = false,
            AuthenticationType = MsDeploy.Providers.AuthenticationScheme.NTLM,
            ComputerName = "cake.computerName.com",
            TempAgent = true
        },
        AllowUntrusted = true,
        PreSyncCommand = "%windir%\\System32\\inetsrv\\appcmd.exe stop APPPOOL NameOfAppPool",
        PostSyncCommand = "%windir%\\System32\\inetsrv\\appcmd.exe start APPPOOL NameOfAppPool",
        WhatIf = true,
        SetParams = new List<SetParameter>
        {
            new SetParameter
            {
                Name = "IIS Web Application Name",
                Value = "www.cake.com"
            }
        }
    });
});

RunTarget(target);

Documention

Please visit the Cake Documentation site for a list of available Aliases: http://cakebuild.net/dsl/msdeploy

Tests

Cake.MsDeploy is covered by set of xUnit tests.

Contribution GuideLines

https://github.com/cake-build/cake/blob/develop/CONTRIBUTING.md

License

Copyright (c) 2016 Cake Contributions Organization

Cake.MsDeploy is provided as-is under the MIT license. For more information see LICENSE.

cake.msdeploy's People

Contributors

louisfischer avatar ecampidoglio avatar

Watchers

CFR OP10 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.