diff --git a/Release/PSGraylog/FunctionGeneration/GenerateFunctions.ps1 b/Release/PSGraylog/FunctionGeneration/GenerateFunctions.ps1 index 5e892c2..0993845 100644 --- a/Release/PSGraylog/FunctionGeneration/GenerateFunctions.ps1 +++ b/Release/PSGraylog/FunctionGeneration/GenerateFunctions.ps1 @@ -136,10 +136,12 @@ Set-Content -Path ".\Classes\GraylogAllClasses.ps1" -Value $ClassString $Functions = @() rm $Outdir\* + +Write-Output "Generating functions" Foreach ($Collection in $Apis ) { $Collection.APIs | ? { $_.Operations -ne $null } | foreach { - Write-Output "Generating functions" + $Functions += New-GLFunction -SwaggerObject $_ -OutDir $OutDir -Context $Collection.Context } diff --git a/Release/PSGraylog/PSGraylog.psd1 b/Release/PSGraylog/PSGraylog.psd1 index 6724fa6..3c614ff 100644 --- a/Release/PSGraylog/PSGraylog.psd1 +++ b/Release/PSGraylog/PSGraylog.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSGraylog.psm1' # Version number of this module. -ModuleVersion = '0.0.1' +ModuleVersion = '0.0.3' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/build.settings.ps1 b/build.settings.ps1 index bfa3fcd..140a4f0 100644 --- a/build.settings.ps1 +++ b/build.settings.ps1 @@ -157,13 +157,17 @@ Task BeforeStageFiles { # Increment version number from gallery Try { - $Moduleversion = (Find-Module -Repository $PublishRepository -Name $ModuleName).Version -join "." + $Moduleversion = (Import-PowershellDataFile -Path "$SrcRootDir\$ModuleName.psd1").ModuleVersion } catch { $ModuleVersion = "0.0.0" } + If ($Env:psakeForceVersion -ne $null) + { + $Moduleversion = $Env:psakeForceVersion + } $ModuleVersion = $Moduleversion -split "\." diff --git a/docs/en-us/PSGraylog b/docs/en-us/PSGraylog deleted file mode 100644 index 622e9c2..0000000 Binary files a/docs/en-us/PSGraylog and /dev/null differ diff --git a/src/PSGraylog.psd1 b/src/PSGraylog.psd1 index 6724fa6..3c614ff 100644 --- a/src/PSGraylog.psd1 +++ b/src/PSGraylog.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSGraylog.psm1' # Version number of this module. -ModuleVersion = '0.0.1' +ModuleVersion = '0.0.3' # Supported PSEditions # CompatiblePSEditions = @()