You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ChangeLog.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,17 @@
1
1
### ChangeLog for vNugglets.Utility PowerShell module
2
2
3
-
#### v1.next, not yet released
3
+
#### v1.2, released 18 Jun 2017
4
4
5
5
-\[improvement] updated function `Get-VNVMByAddress`:
6
-
- greatly increased speed by using `VMware.Vim.SearchIndex` for by-IP searches (does support wildcard, though -- by wildcard still uses slower mechanism); example speed increase: went from 13s to about 0.25s in a vCenter with about 7,500 VMs -- woo-hoo!
7
-
- added new parameters `-GuestHostname` and `-UUID` to support for searching by guest DNS name or VM BIOS UUID, respectively (these also use a method of `VMware.Vim.SearchIndex`, so the searches are super fast)
6
+
- greatly increased speed by using `VMware.Vim.SearchIndex` for by-IP searches (`SearchIndex` search methods do not support wildcard, though, so getting VM by wildcard address still uses slower mechanism); example speed increase for searching for VM by specific IP: went from 13s to about 0.25s in a vCenter with about 7,500 VMs -- woo-hoo!
7
+
- added new parameters `-GuestHostname` and `-UUID` to support for searching by guest DNS name or VM BIOS UUID, respectively (these also use methods of `VMware.Vim.SearchIndex` object, so the searches are super fast)
8
8
-\[improvement] updated function `Copy-VNVIRole`:
9
9
- takes new parameter, `-SourceRole`, for passing VIRole object itself as value, and this parameter accepts value from pipeline, for more natural use of cmdlet
10
10
- deduces source vCenter server from `-SourceRole` value, simplifying use of cmdlet (no need to specify `-SourceVCName` parameter when providing the source VIRole object)
11
11
-`-DestinationVCName` parameter now optional, further simplifying use of cmdlet; if parameter not specified, destination vCenter will be the same as the source vCenter
12
+
-\[internal improvement] updated module prepartion to use `Update-ModuleManifest` for keeping module manifest in shape
13
+
- added manifest entries for tags and for URIs for project, release notes, license, etc.
14
+
- prepared for publishing to the [PowerShellGallery](https://www.powershellgallery.com/))
Description="Module with the super useful functions that were previously scattered about the web by the vNugglets team (particularly, at vNugglets.com)"
15
+
## some aliases, both as written, and with "VN" prefixed on them
## replace the comment in the resulting module manifest that includes "PSGet_" prefixed to the actual module name with a line without "PSGet_" in it
37
+
(Get-Content-Path $strFilespecForPsd1-Raw).Replace("# Module manifest for module 'PSGet_vNugglets.Utility'","# Module manifest for module 'vNugglets.Utility'") |Set-Content-Path $strFilespecForPsd1
38
+
} ## end if
39
+
} ## end prcoess
40
+
41
+
42
+
<#
43
+
## used for original manifest creation
44
+
$hshModManifestParams = @{
45
+
Path = $strFilespecForPsd1
46
+
Author = "Matt Boren"
47
+
CompanyName = "vNugglets.com"
48
+
Copyright = "MIT License"
49
+
## when setting value for DefaultCommandPrefix in module, need to account for that when setting value for Aliases anywhere (need to code those to point at what the functions _will_ be called when the DefaultCommandPrefix is applied)
50
+
#DefaultCommandPrefix = ""
51
+
#FormatsToProcess = "SomeModule.format.ps1xml"
52
+
ModuleToProcess = "vNuggletsUtilityMod.psm1"
53
+
ModuleVersion = "1.1.0"
54
+
## scripts (.ps1) that are listed in the NestedModules key are run in the module's session state, not in the caller's session state. To run a script in the caller's session state, list the script file name in the value of the ScriptsToProcess key in the manifest
Description = "Module with the functions that have previously been scattered about the web by the vNugglets team (particularly, at vNugglets.com"
58
+
## specifies script (.ps1) files that run in the caller's session state when the module is imported. You can use these scripts to prepare an environment, just as you might use a login script
## using -PassThru so as to pass the generated module manifest contents to a var for later output as ASCII (instead of having a .psd1 file of default encoding, Unicode)
## have to do in separate step, as PSD1 file is "being used by another process" -- the New-ModuleManifest cmdlet, it seems
69
+
# in order to have this module usable (importable) via PowerShell v2, need to update the newly created .psd1 file, replacing the 'RootModule' keyword with 'ModuleToProcess'
Copy file name to clipboardExpand all lines: vNugglets.Utility/vNugglets.Utility.psd1
+54-15Lines changed: 54 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
#
4
4
# Generated by: Matt Boren
5
5
#
6
-
# Generated on: 12/6/2016
6
+
# Generated on: 6/18/2017
7
7
#
8
8
9
9
@{
@@ -12,7 +12,10 @@
12
12
RootModule='vNuggletsUtilityMod.psm1'
13
13
14
14
# Version number of this module.
15
-
ModuleVersion='1.1.0'
15
+
ModuleVersion='1.2.0'
16
+
17
+
# Supported PSEditions
18
+
# CompatiblePSEditions = @()
16
19
17
20
# ID used to uniquely identify this module
18
21
GUID='a22ca8fe-3739-463f-b8dd-4d5d2c9ffec4'
@@ -27,7 +30,7 @@ CompanyName = 'vNugglets.com'
27
30
Copyright='MIT License'
28
31
29
32
# Description of the functionality provided by this module
30
-
Description='Module with the functions that have previously been scattered about the web by the vNugglets team (particularly, at vNugglets.com'
33
+
Description='Module with the super useful functions that were previously scattered about the web by the vNugglets team (particularly, at vNugglets.com)'
31
34
32
35
# Minimum version of the Windows PowerShell engine required by this module
33
36
PowerShellVersion='4.0'
@@ -38,17 +41,17 @@ PowerShellVersion = '4.0'
38
41
# Minimum version of the Windows PowerShell host required by this module
39
42
# PowerShellHostVersion = ''
40
43
41
-
# Minimum version of Microsoft .NET Framework required by this module
44
+
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
42
45
# DotNetFrameworkVersion = ''
43
46
44
-
# Minimum version of the common language runtime (CLR) required by this module
47
+
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45
48
# CLRVersion = ''
46
49
47
50
# Processor architecture (None, X86, Amd64) required by this module
48
51
# ProcessorArchitecture = ''
49
52
50
53
# Modules that must be imported into the global environment prior to importing this module
51
-
#RequiredModules = @()
54
+
RequiredModules=@('VMware.VimAutomation.Core')
52
55
53
56
# Assemblies that must be loaded prior to importing this module
# 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.
# Cmdlets 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 cmdlets to export.
84
+
CmdletsToExport=@()
74
85
75
86
# Variables to export from this module
76
87
# VariablesToExport = @()
77
88
78
-
# Aliases to export from this module
79
-
# AliasesToExport = @()
89
+
# Aliases 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 aliases to export.
# 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.
106
+
PrivateData=@{
107
+
108
+
PSData=@{
109
+
110
+
# Tags applied to this module. These help with module discovery in online galleries.
## Set aliases; when setting value for DefaultCommandPrefix in module, need to account for that when setting value for Alias here (value needs to be of what the final function name will be with that DefaultCommandPrefix)
0 commit comments