This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Cake.Common.Diagnostics; | |
using Cake.Core; | |
using Cake.Core.Diagnostics; | |
using Cake.Frosting; | |
public class Program | |
{ | |
public static int Main(string[] args) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BuilderExtensionsTests | |
{ | |
public class TheRegisterFooMethod | |
{ | |
[Fact] | |
public void Should_Register_Foo_With_Container() | |
{ | |
// Given | |
var builder = Substitute.For<IBuilder>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Cake script | |
#r "System.Net" | |
using System.Net; | |
var request = (HttpWebRequest)WebRequest.Create("http://google.com"); | |
var response = (HttpWebResponse)request.GetResponse(); | |
var statusCode = response.StatusCode; | |
Information("Received {0}!", statusCode); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var platform = (int)Environment.OSVersion.Platform; | |
if (platform == (int)PlatformID.MacOSX) | |
{ | |
OperatingSystem = OperatingSystemFamily.OSX; | |
} | |
else if ((platform == 4) || (platform == 6) || (platform == 128)) | |
{ | |
OperatingSystem = OperatingSystemFamily.Linux; | |
} | |
else if((platform <= 3) || (platform == 5)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tools and addins | |
#addin "nuget:?package=System.Management.Automation&version=6.1.7601.17515" | |
using System.Collections; | |
using System.Management.Automation; | |
using System.Management.Automation.Internal; | |
using System.Management.Automation.Runspaces; | |
using System.Threading; | |
/////////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:15.10 | |
MAINTAINER Patrik Svensson "[email protected]" | |
# Make sure everything is up to date. | |
RUN apt-get update | |
RUN apt-get -y upgrade | |
# Install SSH server. | |
RUN apt-get install -y openssh-server | |
RUN sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/pam.d/sshd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////////////////////////// | |
// ARGUMENTS | |
////////////////////////////////////////////////////////////////////// | |
var target = Argument("target", "Default"); | |
var config = Argument("config", "Debug"); | |
////////////////////////////////////////////////////////////////////// | |
// DIRECTORIES | |
////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################################### | |
# This is the Cake bootstrapper script that is responsible for | |
# downloading Cake and all specified tools from NuGet. | |
############################################################### | |
# Define directories. | |
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
TOOLS_DIR=$SCRIPT_DIR/tools | |
NUGET_EXE=$TOOLS_DIR/nuget.exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Cake.Common.IO; | |
using Cake.Common.Tools.MSBuild; | |
using Cake.Core; | |
using Cake.Core.Diagnostics; | |
using Cake.Core.IO; | |
using Cake.Core.IO.NuGet; | |
namespace MyBuildScript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void DoMagic() | |
{ | |
// TODO: magic | |
} |