New-PackageFromScript

SYNOPSIS

Creates a Nuget package from a Chocolatey script

DESCRIPTION

This creates a .nupkg file from a script file. It adds a dummy nuspec
and packs the nuspec and script to a nuget package saved to
$Boxstarter.LocalRepo. The function returns a string that is the
Package Name of the package.

PARAMETER Source

Either a file path or URI pointing to a resource containing a script.

EXAMPLE

$packageName = New-PackageFromScript myScript.ps1

Creates a Package from the myScript.ps1 file in the current directory.

EXAMPLE

$packageName = New-PackageFromScript c:\path\myScript.ps1

Creates a Package from the myScript.ps1 file in c:\path\myScript.ps1.

EXAMPLE

$packageName = New-PackageFromScript \\server\share\myScript.ps1

Creates a Package from the myScript.ps1 file the share at \\server\share\myScript.ps1.

EXAMPLE

$packageName = New-PackageFromScript https://gist.github.com/mwrock/6771863/raw/b579aa269c791a53ee1481ad01711b60090db1e2/gistfile1.txt

Creates a Package from the gist located at
https://gist.github.com/mwrock/6771863/raw/b579aa269c791a53ee1481ad01711b60090db1e2/gistfile1.txt

LINK

about boxstarter.chocolatey

Last edited Nov 9, 2013 at 5:03 AM by mwrock, version 1