Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
!deploy v2.0.2 - added ToString() method override to template object 馃殌
Browse files Browse the repository at this point in the history
!deploy v2.0.2 - added ToString() method override to template object 馃殌
  • Loading branch information
scrthq committed Sep 17, 2017
2 parents 1adca52 + 79242e2 commit c67616c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Vaporshell/Public/Import-Vaporshell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ function Import-Vaporshell {
if ($tempObj.TemplateBody) {
$tempObj = $tempObj.TemplateBody
}
$toString = {
Export-Vaporshell -VaporshellTemplate $this -As JSON -Verbose:$false -Force
}
$memberParam = @{
MemberType = "ScriptMethod"
InputObject = $tempObj
Name = "ToString"
Value = $toString
}
Add-Member @memberParam -Force
$toJSON = {
Process {
$outFile = @{}
Expand Down
10 changes: 10 additions & 0 deletions Vaporshell/Public/Initialize-Vaporshell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ function Initialize-Vaporshell {
if ($Description) {
$tempObj | Add-Member -MemberType NoteProperty -Name "Description" -Value "$Description"
}
$toString = {
Export-Vaporshell -VaporshellTemplate $this -As JSON -Verbose:$false -Force
}
$memberParam = @{
MemberType = "ScriptMethod"
InputObject = $tempObj
Name = "ToString"
Value = $toString
}
Add-Member @memberParam -Force
$toJSON = {
Process {
$outFile = @{}
Expand Down
2 changes: 1 addition & 1 deletion Vaporshell/Vaporshell.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Vaporshell.psm1'

# Version number of this module.
ModuleVersion = '2.0.1'
ModuleVersion = '2.0.2'

# ID used to uniquely identify this module
GUID = 'd526494c-6e59-41ff-ad05-eedbc1473b6a'
Expand Down
2 changes: 1 addition & 1 deletion ci/psake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Task Build -Depends Test {
Update-Metadata -Path $env:BHPSModuleManifest -PropertyName ModuleVersion -Value $Version
#>

Update-Metadata -Path $env:BHPSModuleManifest -PropertyName ModuleVersion -Value "2.0.1"
Update-Metadata -Path $env:BHPSModuleManifest -PropertyName ModuleVersion -Value "2.0.2"

#Update-Metadata -Path $env:BHPSModuleManifest -Increment Minor
}
Expand Down

0 comments on commit c67616c

Please sign in to comment.