Move crontab demo to it's own directory
Also change CronTab.psd1 encoding to ASCII
This commit is contained in:
parent
ec1369f1dc
commit
3dafae5357
61
demos/crontab/CronTab/CronTab.psd1
Executable file
61
demos/crontab/CronTab/CronTab.psd1
Executable file
|
@ -0,0 +1,61 @@
|
|||
@{
|
||||
|
||||
# Script module or binary module file associated with this manifest.
|
||||
RootModule = 'CronTab.psm1'
|
||||
|
||||
# Version number of this module.
|
||||
ModuleVersion = '0.1.0.0'
|
||||
|
||||
# Supported PSEditions
|
||||
CompatiblePSEditions = @('Linux')
|
||||
|
||||
# ID used to uniquely identify this module
|
||||
GUID = '508bb97f-de2e-482e-aae2-01caec0be8c7'
|
||||
|
||||
# Author of this module
|
||||
Author = 'Microsoft'
|
||||
|
||||
# Company or vendor of this module
|
||||
CompanyName = 'Unknown'
|
||||
|
||||
# Copyright statement for this module
|
||||
Copyright = '(c) 2016 Microsoft. All rights reserved.'
|
||||
|
||||
# Description of the functionality provided by this module
|
||||
Description = 'Sample module for managing CronTab'
|
||||
|
||||
# Format files (.ps1xml) to be loaded when importing this module
|
||||
FormatsToProcess = 'CronTab.ps1xml'
|
||||
|
||||
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
|
||||
FunctionsToExport = 'New-CronJob','Remove-CronJob','Get-CronJob','Get-CronTabUser'
|
||||
|
||||
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
|
||||
PrivateData = @{
|
||||
|
||||
PSData = @{
|
||||
|
||||
# Tags applied to this module. These help with module discovery in online galleries.
|
||||
# Tags = @()
|
||||
|
||||
# A URL to the license for this module.
|
||||
# LicenseUri = ''
|
||||
|
||||
# A URL to the main website for this project.
|
||||
# ProjectUri = ''
|
||||
|
||||
# A URL to an icon representing this module.
|
||||
# IconUri = ''
|
||||
|
||||
# ReleaseNotes of this module
|
||||
# ReleaseNotes = ''
|
||||
|
||||
} # End of PSData hashtable
|
||||
|
||||
} # End of PrivateData hashtable
|
||||
|
||||
# HelpInfo URI of this module
|
||||
# HelpInfoURI = ''
|
||||
|
||||
}
|
||||
|
|
@ -1,10 +1,5 @@
|
|||
|
||||
if (!($env:PSMODULEPATH -split ';' | Where-Object { $_.StartsWith($PSScriptRoot) }))
|
||||
{
|
||||
$env:PSMODULEPATH += ";$PSScriptRoot/modules"
|
||||
}
|
||||
|
||||
Import-Module CronTab
|
||||
Import-Module $PSScriptRoot/CronTab/CronTab.psd1
|
||||
|
||||
# Get the existing cron jobs
|
||||
Get-CronJob
|
Binary file not shown.
Loading…
Reference in a new issue