full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraField.ps1 | ConvertTo-JiraField.ps1 | function ConvertTo-JiraField
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject,
[ValidateScript({Test-Path $_})]
[String] $ConfigFile,
[Switch] $... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraPriority.ps1 | ConvertTo-JiraPriority.ps1 | function ConvertTo-JiraPriority
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject,
[ValidateScript({Test-Path $_})]
[String] $ConfigFile,
[Switch... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraComponent.ps1 | ConvertTo-JiraComponent.ps1 | function ConvertTo-JiraComponent
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject
)
process
{
foreach ($i in $InputObject)
{
# W... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraComment.ps1 | ConvertTo-JiraComment.ps1 | function ConvertTo-JiraComment
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject
)
process
{
foreach ($i in $InputObject)
{
# Wri... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraWorklogitem.ps1 | ConvertTo-JiraWorklogitem.ps1 | function ConvertTo-JiraWorklogItem
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject
)
process
{
foreach ($i in $InputObject)
{
# ... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraLink.ps1 | ConvertTo-JiraLink.ps1 | function ConvertTo-JiraLink
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject
)
process
{
foreach ($i in $InputObject)
{
# Write-... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/Invoke-JiraMethod.ps1 | Invoke-JiraMethod.ps1 | function Invoke-JiraMethod {
#Requires -Version 3
[CmdletBinding(DefaultParameterSetName = 'UseCredential')]
param
(
[Parameter(Mandatory = $true)]
[ValidateSet('Get', 'Post', 'Put', 'Delete')]
[String] $Method,
[Parameter(Mandatory = $true)]
[String] $... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/build/build.settings.ps1 | build.settings.ps1 | ###############################################################################
# Customize these properties and tasks for your module.
###############################################################################
Properties {
# ----------------------- Basic properties --------------------------------
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/build/build.psake.ps1 | build.psake.ps1 | #Requires -Modules psake,BuildHelpers
##############################################################################
# DO NOT MODIFY THIS FILE! Modify build.settings.ps1 instead.
##############################################################################
#####################################################... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/build/build.ps1 | build.ps1 | #Requires -Modules psake,BuildHelpers
# This is a shortcut script that just invokes the "main" build logic.
# Builds the module by invoking psake on the build.psake.ps1 script.
Invoke-PSake $PSScriptRoot\build.psake.ps1 -taskList Build
|
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraSession.Tests.ps1 | ConvertTo-JiraSession.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
. $PSScriptRoot\Shared.ps1
Describe "ConvertTo-JiraSession" {
$sampleUsername = 'powershell-test'
$sampleJSessionID = '76449957D8C863BE8D4F6F5507E980E8'
$sampleSession = @{}
$sampleWebResponse = @"
{
"session": {
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Shared.ps1 | Shared.ps1 |
# Dot source this script in any Pester test script that requires the module to be imported.
$ModuleName = 'JiraPS'
$ModuleManifestPath = "$PSScriptRoot\..\$ModuleName\$ModuleManifestName.psd1"
$RootModule = "$PSScriptRoot\..\$ModuleName\$ModuleName.psm1"
# The first time this is called, the module will be for... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Invoke-JiraMethod.Tests.ps1 | Invoke-JiraMethod.Tests.ps1 | # PSScriptAnalyzer - ignore creation of a SecureString using plain text for the contents of this script file
# https://replicajunction.github.io/2016/09/19/suppressing-psscriptanalyzer-in-pester/
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]
param()
. $P... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraUser.Tests.ps1 | ConvertTo-JiraUser.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraUser" {
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
$username = 'powershell-test'
$displayName = 'PowerShell Test User'
$email = 'noreply@example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraGroup.Tests.ps1 | ConvertTo-JiraGroup.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraGroup" {
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
$groupName = 'powershell-testgroup'
$sampleJson = @"
{
"self": "$jiraServer/rest/api/2/group?groupname=$groupN... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraConfigServer.Tests.ps1 | Get-JiraConfigServer.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraIssueComment.Tests.ps1 | Get-JiraIssueComment.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe "Get-JiraIssueComment" {
$jiraS... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Resolve-JiraError.Tests.ps1 | Resolve-JiraError.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe "Resolve-JiraError" {
$testErrorK... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Set-JiraIssueLabel.Tests.ps1 | Set-JiraIssueLabel.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe "Set-JiraIssueLabel" {
if ($ShowD... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraCreateMetaField.Tests.ps1 | ConvertTo-JiraCreateMetaField.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraCreateMetaField" {
. $PSScriptRoot\Shared.ps1
$sampleJson = @'
{
"expand": "projects",
"projects": [
{
"expand": "issuetypes",
"is... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraPriority.Tests.ps1 | Get-JiraPriority.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Invoke-JiraIssueTransition.Tests.ps1 | Invoke-JiraIssueTransition.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/PSJira.Help.Tests.ps1 | PSJira.Help.Tests.ps1 | <#
.NOTES
===========================================================================
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2016 v5.2.119
Created on: 4/12/2016 1:11 PM
Created by: June Blender
Organization: SAPIEN Technologies, Inc
Filename: *.Help.Tests.ps1
========... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Add-JiraIssueLink.Tests.ps1 | Add-JiraIssueLink.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope = '*', Target = 'SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraTransition.Tests.ps1 | ConvertTo-JiraTransition.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraTransition" {
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
$tId = 11
$tName = 'Start Progress'
# Transition result status
$tRId = 3
$tRName =... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraIssueLink.Tests.ps1 | ConvertTo-JiraIssueLink.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraIssueLink" {
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
$issueLinkId = 41313
$issueKeyInward = "TEST-01"
$issueKeyOutward = "TEST-10"
$linkTypeName = "C... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraIssueType.Tests.ps1 | Get-JiraIssueType.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
$jiraServer = 'http://jiraserver.example.com'
$issueTypeId = 2
$issueTypeName = 'Desktop Support'
$restResult = @"
[
{
"self": "$jiraServer/rest/api/latest/issuetype/12",
"id": "12",
"description": "This issue type is no l... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraLink.Tests.ps1 | ConvertTo-JiraLink.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraLink" {
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
$LinkID = "10000"
$sampleJson = @"
{
"id": 10000,
"self": "http://jiraserver.example.com/rest/api/issue/MK... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraGroup.Tests.ps1 | Get-JiraGroup.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
$showMockData = $false
$jiraServer = 'http://jiraserver.example.com'
$testGroupName = 'Test Group'
$testGroupNameEscaped = [System.Web.HttpUtility]::UrlPathEncode($testGroupName)
$testGroupSize = 1
$restResult = @"
{
"name": ... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraField.Tests.ps1 | ConvertTo-JiraField.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraField" {
. $PSScriptRoot\Shared.ps1
$sampleJson = '{"id":"issuetype","name":"Issue Type","custom":false,"orderable":true,"navigable":true,"searchable":true,"clauseNames":["issuetype","type"],"schema":{"type":"issuetype... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraGroupMember.Tests.ps1 | Get-JiraGroupMember.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe "Get-JiraGroupMember" {
if ($Show... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/JiraPS.Tests.ps1 | JiraPS.Tests.ps1 | #Requires -Modules PSScriptAnalyzer
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$projectRoot = Split-Path -Parent $here
$moduleRoot = "$projectRoot\JiraPS"
$manifestFile = "$moduleRoot\JiraPS.psd1"
$changelogFile = "$projectRoot\CHANGELOG.md"
$appveyorFile = "$projectRoot\appveyor.yml"
$publicFun... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraComponent.Tests.ps1 | Get-JiraComponent.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Remove-JiraSession.Tests.ps1 | Remove-JiraSession.Tests.ps1 | # PSScriptAnalyzer - ignore creation of a SecureString using plain text for the contents of this script file
# https://replicajunction.github.io/2016/09/19/suppressing-psscriptanalyzer-in-pester/
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]
param()
. $P... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/New-JiraGroup.Tests.ps1 | New-JiraGroup.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraPriority.Tests.ps1 | ConvertTo-JiraPriority.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraPriority" {
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
$priorityId = 1
$priorityName = 'Critical'
$priorityDescription = 'Cannot contine normal operations'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Remove-JiraUser.Tests.ps1 | Remove-JiraUser.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraIssue.Tests.ps1 | Get-JiraIssue.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe "Get-JiraIssue" {
Mock Get-JiraCo... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraProject.Tests.ps1 | ConvertTo-JiraProject.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraProject" {
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
$projectKey = 'IT'
$projectId = '10003'
$projectName = 'Information Technology'
$sampleJson = ... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Add-JiraGroupMember.Tests.ps1 | Add-JiraGroupMember.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraIssueCreateMetadata.Tests.ps1 | Get-JiraIssueCreateMetadata.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe "Get-JiraIssueCreateMetadata" {
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Add-JiraIssueWorklog.Tests.ps1 | Add-JiraIssueWorklog.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
$ShowMockData = $false
$jiraServer = 'http://jiraserver.example.com'
$jiraUsername = 'powershell-test'
$jiraUserDisplayName = 'PowerShell Test User'
$jiraUserEmail = 'noreply@example.com'
$issueID = 41701
$issueKey = 'IT-3676'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Remove-JiraGroupMember.Tests.ps1 | Remove-JiraGroupMember.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Set-JiraIssue.Tests.ps1 | Set-JiraIssue.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe "Set-JiraIssue" {
if ($ShowDebugT... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Add-JiraIssueComment.Tests.ps1 | Add-JiraIssueComment.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Add-JiraIssueWatcher.Tests.ps1 | Add-JiraIssueWatcher.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Remove-JiraIssueLink.Tests.ps1 | Remove-JiraIssueLink.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope = '*', Target = 'SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraComponent.Tests.ps1 | ConvertTo-JiraComponent.Tests.ps1 | . $PSScriptRoot\Shared.ps1
# This is a private function, so the test needs to be within the module's scope
InModuleScope JiraPS {
# A bit counter-intuitive to import this twice, but otherwise its functions
# are outside the JiraPS module scope. We need it outside to make sure the
# module is loaded... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraIssueLinkType.Tests.ps1 | ConvertTo-JiraIssueLinkType.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraIssueLinkType" {
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
$sampleJson = @'
{
"issueLinkTypes": [
{
"id": "10000",
"name": "Blocks",
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/New-JiraIssue.Tests.ps1 | New-JiraIssue.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe "New-JiraIssue" {
if ($ShowDebugT... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraRemoteLink.Tests.ps1 | Get-JiraRemoteLink.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraProject.Tests.ps1 | Get-JiraProject.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraUser.Tests.ps1 | Get-JiraUser.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Set-JiraConfigServer.Tests.ps1 | Set-JiraConfigServer.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraEditMetaField.Tests.ps1 | ConvertTo-JiraEditMetaField.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraEditMetaField" {
. $PSScriptRoot\Shared.ps1
$sampleJson = @'
{
"fields": {
"summary": {
"required": true,
"schema": {
"type": "string",
"system": "summary"
},
"nam... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraIssueLink.Tests.ps1 | Get-JiraIssueLink.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/New-JiraUser.Tests.ps1 | New-JiraUser.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraWorklogitem.Tests.ps1 | ConvertTo-JiraWorklogitem.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraWorklogitem" {
function defProp($obj, $propName, $propValue)
{
It "Defines the '$propName' property" {
$obj.$propName | Should Be $propValue
}
}
$jiraServer = 'h... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraIssueEditMetadata.Tests.ps1 | Get-JiraIssueEditMetadata.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe "Get-JiraIssueEditMetadata" {
i... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraField.Tests.ps1 | Get-JiraField.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
$jiraServer = 'http://jiraserver.example.com'
# In my Jira instance, this returns 34 objects. I've stripped it down quite a bit for testing.
$restResult = @"
[
{
"id": "issuetype",
"name": "Issue Type",
"custom": fa... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraIssueWatcher.Tests.ps1 | Get-JiraIssueWatcher.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Set-JiraUser.Tests.ps1 | Set-JiraUser.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Remove-JiraRemoteLink.Tests.ps1 | Remove-JiraRemoteLink.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
# This is intended to be a parameter to the test, but Pester currently does not allow parameters to be passed to InModuleScope blocks.
# For the time being, we'll need to hard-code this and adjust it as desired.
$ShowMockData = $false
$ShowDebug... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraIssueType.Tests.ps1 | ConvertTo-JiraIssueType.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraIssueType" {
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
$issueTypeId = 2
$issueTypeName = 'Test Issue Type'
$issueTypeDescription = 'A test issue used for...well... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraIssueLinkType.Tests.ps1 | Get-JiraIssueLinkType.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope = '*', Target = 'SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertFrom-Json2.Tests.ps1 | ConvertFrom-Json2.Tests.ps1 | . $PSScriptRoot\Shared.ps1
Describe "ConvertFrom-Json2" {
$sampleJson = '{"id":"issuetype","name":"Issue Type","custom":false,"orderable":true,"navigable":true,"searchable":true,"clauseNames":["issuetype","type"],"schema":{"type":"issuetype","system":"issuetype"}}'
$sampleObject = ConvertFrom-Json2 -InputObje... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraIssue.Tests.ps1 | ConvertTo-JiraIssue.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
. $PSScriptRoot\Shared.ps1
Describe "ConvertTo-JiraIssue" {
if ($ShowDebugText)
{
Mock "Write-Debug" {
Write-Host " [DEBUG] $Message" -ForegroundColor Yellow
}
}
# ... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Format-Jira.Tests.ps1 | Format-Jira.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe "Format-Jira" {
$n = [System.Envi... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Remove-JiraIssueWatcher.Tests.ps1 | Remove-JiraIssueWatcher.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Remove-JiraGroup.Tests.ps1 | Remove-JiraGroup.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/New-JiraSession.Tests.ps1 | New-JiraSession.Tests.ps1 | # PSScriptAnalyzer - ignore creation of a SecureString using plain text for the contents of this script file
# https://replicajunction.github.io/2016/09/19/suppressing-psscriptanalyzer-in-pester/
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]
param()
. $P... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraFilter.Tests.ps1 | Get-JiraFilter.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe 'Get-JiraFilter' {
if ($ShowDeb... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraFilter.Tests.ps1 | ConvertTo-JiraFilter.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraFilter" {
. $PSScriptRoot\Shared.ps1
# Obtained from Atlassian's public JIRA instance
$sampleJson = @'
{
"self": "https://jira.atlassian.com/rest/api/latest/filter/12844",
"id": "12844",
"name"... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraComment.Tests.ps1 | ConvertTo-JiraComment.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraComment" {
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
$jiraUsername = 'powershell-test'
$jiraUserDisplayName = 'PowerShell Test User'
$jiraUserEmail = 'noreply@e... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/Get-JiraSession.Tests.ps1 | Get-JiraSession.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseDeclaredVarsMoreThanAssigments', '', Scope='*', Target='SuppressImportModule')]
$SuppressImportModule = $true
. $PSScriptRoot\Shared.ps1
Describe "Get-JiraSession" {
It "Obtains a s... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tests/ConvertTo-JiraStatus.Tests.ps1 | ConvertTo-JiraStatus.Tests.ps1 | . $PSScriptRoot\Shared.ps1
InModuleScope JiraPS {
Describe "ConvertTo-JiraStatus" {
. $PSScriptRoot\Shared.ps1
$jiraServer = 'http://jiraserver.example.com'
$statusName = 'In Progress'
$statusId = 3
$statusDesc = 'This issue is being actively worked on at the mom... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tools/Deploy.ps1 | Deploy.ps1 | # This script evaluates the build and deploys if applicable
# Credit to Trevor Sullivan:
# https://github.com/pcgeek86/PSNuGet/blob/master/deploy.ps1
#
# This script uses Write-Host a bit. That's not good practice, but AppVeyor
# doesn't seem to display verbose output.
#region Functions
# Again, credit to Tr... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tools/Pre-Push.ps1 | Pre-Push.ps1 | Write-Host "Starting Pre-Push Hooks..." -ForegroundColor Cyan
try {
Write-Host "PSScriptRoot: $PSScriptRoot"
$moduleManifest = Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -ChildPath 'JiraPS\JiraPS.psd1'
Write-Host "Module manifest file: $moduleManifest"
Import-Module $moduleManifest
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tools/psake.ps1 | psake.ps1 | # No longer used as of 2017-05-22. See build\build.psake.ps1 instead.
# PSake makes variables declared here available in other scriptblocks
Properties {
# This refers to the root of the project directory
$ProjectRoot = $env:APPVEYOR_BUILD_FOLDER
# This is the root of the module folder inside the pr... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/Tools/Appveyor.ps1 | Appveyor.ps1 | # This approach shamelessly copied from RamblingCookieMonster. ^.^
# Be SURE to install Pester using appveyor.yml. Chocolatey is available, so the simplest way is to use this:
# cinst -y Pester
#region Variables
# AppVeyor environment variables
# This refers to the root of the project directory - usually C:\... |
PowerShellCorpus/Github/OPSTest_E2E_Provision_1484814542913/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1: Download buildcore script to local
echo "download build core script to local with source u... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/JEA/BreakGlass/Demo-BreakGlass.ps1 | Demo-BreakGlass.ps1 | <#
Disclaimer
This example code is provided without copyright and “AS IS”. It is free for you to use and modify.
Note: These demos should not be run as a script. These are the commands that I use in the
demonstrations and would need to be modified for your environment.
#>
Break # To prevent accidental execu... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/JEA/BreakGlass/JeaBreakGlassDeploy.ps1 | JeaBreakGlassDeploy.ps1 | <#Disclaimer
This example code is provided without copyright and “AS IS”. It is free for you to use and modify.
Note: These demos should not be run as a script. These are the commands that I use in the
demonstrations and would need to be modified for your environment.
#>
# JEADeploy.ps1
# Create dir... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/JEA/JeaBuild/JEABuild.ps1 | JEABuild.ps1 | <#
Disclaimer
This example code is provided without copyright and “AS IS”. It is free for you to use and modify.
Note: These demos should not be run as a script. These are the commands that I use in the
demonstrations and would need to be modified for your environment.
#>
Param (
[String]$JEADevPath = 'c... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/JEA/JeaBuild/JEADSC.ps1 | JEADSC.ps1 | onfiguration JEAEndPoint {
Param (
[Parameter(Mandatory=$true)]
[string[]]$ComputerName
)
Import-DscResource -ModuleName JustEnoughAdministration
Node $ComputerName {
JeaEndpoint PrintOperators #ResourceName
{
EndpointName = 'PrintO... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/JEA/JeaBuild/JEATest.ps1 | JEATest.ps1 |
##region Test
#
Get-PSSessionConfiguration
Enter-PSSession -ComputerName Client -ConfigurationName $JEAEndpointName #Fails
Enter-PSSession -ComputerName Client -ConfigurationName $JEAEndpointName -Credential Company\JimJea
Get-Command
Restart-Service bits -ver
Get-UserInfo # Note the virtual account
Functio... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/JEA/JeaBuild/0.Demo.ps1 | 0.Demo.ps1 |
### Sign in as JAsonNonAdmin and connect to endpoint on DC JEABreakGLASS
### Show Files
New-Item -Path c:\test -ItemType Directory
New-PSRoleCapabilityFile -Path c:\Test\Capability.psrc # explain extenstion - path must end with file.psrc
New-PSSessionConfigurationFile -Path c:\test\Session.pssc
ISE C:\test\se... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/JEA/JeaBuild/JeaDeploy.ps1 | JeaDeploy.ps1 | <#Disclaimer
This example code is provided without copyright and “AS IS”. It is free for you to use and modify.
Note: These demos should not be run as a script. These are the commands that I use in the
demonstrations and would need to be modified for your environment.
#>
Param (
[String]$JEADevPath = 'c:\... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/1.Config_Web_MultiSite_Allnodes.ps1 | 1.Config_Web_MultiSite_Allnodes.ps1 | $ConfigData=@{
# Node specific data
AllNodes = @(
# All Servers need following identical information
@{
NodeName = '*'
PSDscAllowPlainTextPassword = $true;
PSDscAllowDomainUser = $true
},
# Unique Data for each... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/Setup.ps1 | Setup.ps1 | # 1. Set directory location for demo files
Set-Location -Path C:\Scripts
Add-DnsServerResourceRecordA -ComputerName dc -name TechMentor -ZoneName Company.pri -IPv4Address 192.168.3.51
Add-DnsServerResourceRecordA -ComputerName dc -name PSWA -ZoneName Company.pri -IPv4Address 192.168.3.52
.\1.LCM_Settings.ps1
... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/1.LCM_Settings.ps1 | 1.LCM_Settings.ps1 | [DSCLocalConfigurationManager()]
Configuration LCM {
Param (
[Parameter(Mandatory=$true)]
[string[]]$ComputerName
)
Node $Computername
{
Settings # Hit Ctrl-Space for help
{
ConfigurationMode = 'ApplyAndAutoCorrect'
RebootNodeIfNeeded = $true
}
... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/0.Demo.ps1 | 0.Demo.ps1 | Set-Location c:\scripts
.\1.Config_Web_MultiSite_Allnodes.ps1
Start-DscConfiguration -ComputerName s1.company.pri, s2.company.pri -Path .\ -Verbose -Wait
Start-Process -FilePath iexplore http://techmentor.company.pri
Start-Process -FilePath iexplore https://PSWA.company.pri
Invoke-Command -ComputerName s1 ... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/xDnsServer/1.5.0.0/Misc/New-DnsServerSecondaryZone.ps1 | New-DnsServerSecondaryZone.ps1 | $Properties = @{
Name = New-xDscResourceProperty -Name Name -Type String -Attribute Key `
-Description 'Name of the secondary zone'
DnsServer = New-xDscResourceProperty -Name MasterServerIPAddress -Type String[] -Attribute Requ... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/xDnsServer/1.5.0.0/Misc/New-DnsServerZoneTransfer.ps1 | New-DnsServerZoneTransfer.ps1 | $Properties = @{
Name = New-xDscResourceProperty -Name Name -Type String -Attribute Key `
-Description 'Name of the secondary zone'
Type = New-xDscResourceProperty -Name Type -Type String -Attribute Required -ValidateSet 'Any',... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/xDnsServer/1.5.0.0/Tests/xDnsServerPrimaryZone.Tests.ps1 | xDnsServerPrimaryZone.Tests.ps1 | if (!$PSScriptRoot) # $PSScriptRoot is not defined in 2.0
{
$PSScriptRoot = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Path)
}
$ErrorActionPreference = 'stop'
Set-StrictMode -Version latest
$RepoRoot = (Resolve-Path $PSScriptRoot\..).Path
$ModuleName = 'MSFT_xDnsServerPrimaryZone'
Impo... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/xDnsServer/1.5.0.0/Tests/xDnsRecord.Tests.ps1 | xDnsRecord.Tests.ps1 | [CmdletBinding()]
param()
if (!$PSScriptRoot) # $PSScriptRoot is not defined in 2.0
{
$PSScriptRoot = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Path)
}
$ErrorActionPreference = 'stop'
Set-StrictMode -Version latest
$RepoRoot = (Resolve-Path $PSScriptRoot\..).Path
$ModuleName = "MSF... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/PSWAAuthorization/PSWAAuthSetup.ps1 | PSWAAuthSetup.ps1 | # Ise C:\pwa\cPSWAAuthorization\cPSWAAuthorization.psm1
New-ModuleManifest -Path C:\pwa\cPSWAAuthorization\cPSWAAuthorization.psd1 -RootModule cPSWAAuthorization.psm1 `
-Guid ([GUID]::NewGuid()) -ModuleVersion 1.0 -Author 'Jason Helmick' `
-Description 'PSWA Rule Authorization' -DscResourcesToExport 'cPSWA... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/xWebAdministration/1.9.0.0/DSCResources/MSFT_xIisModule/xIisModuleDesigner.ps1 | xIisModuleDesigner.ps1 | $diff = join-Path ${env:ProgramFiles(x86)} "Beyond compare 2\bc2.exe"
$friendlyName = "xIisModule"
$resourceName = "MSFT_$friendlyName"
$classVersion = "1.0.0"
$scriptRoot = Split-Path $MyInvocation.MyCommand.Path
$originalModuleRoot = join-Path $scriptroot "..\.."
$originalModuleRootPath = Resolve-Path $origin... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/xWebAdministration/1.9.0.0/Examples/Sample_xIisMimeTypeMapping_RemoveVideo.ps1 | Sample_xIisMimeTypeMapping_RemoveVideo.ps1 | configuration Sample_RemoveVideoMimeTypeMappings
{
param
(
# Target nodes to apply the configuration
[string[]]$NodeName = 'localhost'
)
# Import the module that defines custom resources
Import-DscResource -Module xWebAdministration, PSDesiredStateConfiguration
Node ... |
PowerShellCorpus/Github/theJasonHelmick_ITEdge/DSC/xWebAdministration/1.9.0.0/Examples/Sample_xIisFeatureDelegation_AllowSome.ps1 | Sample_xIisFeatureDelegation_AllowSome.ps1 | configuration Sample_IISFeatureDelegation
{
param
(
# Target nodes to apply the configuration
[string[]] $NodeName = 'localhost'
)
# Import the module that defines custom resources
Import-DscResource -Module xWebAdministration, PSDesiredStateConfiguration
Node $NodeN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.