diff --git a/CHANGELOG.md b/CHANGELOG.md index c91182f..08e1428 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,80 @@ All notable changes to the [PSWF](https://github.com/Akaizoku/PSWF) project will The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.0](https://github.com/Akaizoku/PSWF/releases/tag/1.0.1) - 2020-02-26 + +Expansion + +### Added + +The following functions have been added: +- Add-Resource +- Add-SecurityDomain +- Disable-DataSource +- Disable-Deployment +- Enable-DataSource +- Enable-Deployment +- Get-DeploymentStatus +- Get-JBossClientResult +- Grant-SecurityRole +- Invoke-DeployApplication +- Invoke-UndeployApplication +- Read-Attribute +- Dead-DeploymentStatus +- Read-SecurityDomain +- Remove-Attribute +- Remove-SecurityDomain +- Test-DataSource +- Test-DataSourceConnection +- Test-Deployment +- Test-JDBCDriver +- Test-Resource +- Test-SecurityDomain +- Write-Attribute + +### Changed + +The following functions have been updated: +- Add-DataSource +- Add-JDBCDriver +- Add-Module +- Add-SecurityRole +- Add-User +- Add-UserGroupRole +- Disable-RBAC +- Enable-RBAC +- Grant-SecurityRole +- Invoke-DeployWAR +- Invoke-JBossClient +- Invoke-ReloadServer +- Invoke-UndeployWAR +- Read-DeploymentStatus +- Read-Resource +- Read-ServerState +- Remove-DataSource +- Remove-JDBCDriver +- Remove-Module +- Remove-Resource +- Remove-SecurityRole +- Remove-User +- Remove-UserGroupRole +- Resolve-ServerState +- Test-JBossClientOutcome +- Test-Module +- Test-SecurityRole +- Test-ServerState +- Test-User +- Test-UserGroupRole +- Write-JBossClientCmd: Fix issue \#1 by using single-quoted command definition and escaping the double-quotes + +### Removed + +The following functions have been removed: +- Set-Interface +- Set-JavaOptions +- Set-PortNumber +- Set-PortOffset + ## [1.0.0](https://github.com/Akaizoku/PSWF/releases/tag/1.0.0) - 2020-01-13 ### Added diff --git a/PSWF.psd1 b/PSWF.psd1 index 13b54d4..da771e5 100644 --- a/PSWF.psd1 +++ b/PSWF.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSWF.psm1' # Version number of this module. -ModuleVersion = '1.0.1' +ModuleVersion = '1.1.0' # Supported PSEditions # CompatiblePSEditions = @() @@ -157,8 +157,8 @@ PrivateData = @{ # ReleaseNotes of this module ReleaseNotes = @' -[1.0.1] -Bug fixes and improvements +[1.1.0] +Expansion '@ } # End of PSData hashtable diff --git a/Private/Get-JBossClientResult.ps1 b/Private/Get-JBossClientResult.ps1 deleted file mode 100644 index a389574..0000000 --- a/Private/Get-JBossClientResult.ps1 +++ /dev/null @@ -1,62 +0,0 @@ -function Get-JBossClientResult { - <# - .SYNOPSIS - Get JBoss client result - - .DESCRIPTION - Get the result of a JBoss client operation - - .PARAMETER Log - The log parameter corresponds to the output of the JBoss client. - - .INPUTS - System.String. You can pipe the JBoss client operation log to Get-JBossClientResult. - - .OUTPUTS - System.String. Get-JBossClientResult returns the result of the JBoss client operation (if any). - - .EXAMPLE - $Log = '{ - "outcome" => "success", - "result" => "running" - }' - Get-JBossClientResult -Log $Log - - In this example, Get-JBossClientResult will return the result "running" (without quotes). - - .NOTES - File name: Get-JBossClientResult.ps1 - Author: Florian Carrier - Creation date: 15/01/2020 - Last modified: 15/01/2020 - #> - [CmdletBinding()] - Param ( - [Parameter ( - Position = 1, - Mandatory = $true, - HelpMessage = "JBoss client command output log", - ValueFromPipeline = $true, - ValueFromPipelineByPropertyName = $true - )] - [ValidateNotNullOrEmpty()] - [Object] - $Log - ) - Begin { - # Get global preference variables - Get-CallerPreference -Cmdlet $PSCmdlet -SessionState $ExecutionContext.SessionState - } - Process { - # Check JBoss client operation outcome - if (Test-JBossClientOutcome -Log $Log) { - # Select result - $Result = Select-String -InputObject $Log -Pattern '(?<=\"result\" \=\> ")(\w|-)*' | ForEach-Object { $_.Matches.Value } - # Return formatted value - return $Result.Replace('"', '').Trim() - } else { - # If outcome is failed or an error occured - return $null - } - } -} diff --git a/README.md b/README.md index 58ba482..6cc558f 100644 --- a/README.md +++ b/README.md @@ -39,53 +39,53 @@ Get-Command -Module "PSWF" | CommandType | Name | Version | Source | | ----------- | -------------------------- | ------- | ------ | -| Function | Add-DataSource | 1.0.1 | PSWF | -| Function | Add-JDBCDriver | 1.0.1 | PSWF | -| Function | Add-Module | 1.0.1 | PSWF | -| Function | Add-Resource | 1.0.1 | PSWF | -| Function | Add-SecurityDomain | 1.0.1 | PSWF | -| Function | Add-SecurityRole | 1.0.1 | PSWF | -| Function | Add-User | 1.0.1 | PSWF | -| Function | Add-UserGroupRole | 1.0.1 | PSWF | -| Function | Disable-DataSource | 1.0.1 | PSWF | -| Function | Disable-Deployment | 1.0.1 | PSWF | -| Function | Disable-RBAC | 1.0.1 | PSWF | -| Function | Enable-DataSource | 1.0.1 | PSWF | -| Function | Enable-Deployment | 1.0.1 | PSWF | -| Function | Enable-RBAC | 1.0.1 | PSWF | -| Function | Get-DeploymentStatus | 1.0.1 | PSWF | -| Function | Grant-SecurityRole | 1.0.1 | PSWF | -| Function | Invoke-DeployApplication | 1.0.1 | PSWF | -| Function | Invoke-JBossClient | 1.0.1 | PSWF | -| Function | Invoke-ReloadServer | 1.0.1 | PSWF | -| Function | Invoke-UndeployApplication | 1.0.1 | PSWF | -| Function | Read-Attribute | 1.0.1 | PSWF | -| Function | Read-DeploymentStatus | 1.0.1 | PSWF | -| Function | Read-Resource | 1.0.1 | PSWF | -| Function | Read-SecurityDomain | 1.0.1 | PSWF | -| Function | Read-ServerState | 1.0.1 | PSWF | -| Function | Remove-Attribute | 1.0.1 | PSWF | -| Function | Remove-DataSource | 1.0.1 | PSWF | -| Function | Remove-JDBCDriver | 1.0.1 | PSWF | -| Function | Remove-Module | 1.0.1 | PSWF | -| Function | Remove-Resource | 1.0.1 | PSWF | -| Function | Remove-SecurityDomain | 1.0.1 | PSWF | -| Function | Remove-SecurityRole | 1.0.1 | PSWF | -| Function | Remove-User | 1.0.1 | PSWF | -| Function | Remove-UserGroupRole | 1.0.1 | PSWF | -| Function | Test-DataSource | 1.0.1 | PSWF | -| Function | Test-DataSourceConnection | 1.0.1 | PSWF | -| Function | Test-Deployment | 1.0.1 | PSWF | -| Function | Test-JBossClientOutcome | 1.0.1 | PSWF | -| Function | Test-JDBCDriver | 1.0.1 | PSWF | -| Function | Test-Module | 1.0.1 | PSWF | -| Function | Test-Resource | 1.0.1 | PSWF | -| Function | Test-SecurityDomain | 1.0.1 | PSWF | -| Function | Test-SecurityRole | 1.0.1 | PSWF | -| Function | Test-ServerState | 1.0.1 | PSWF | -| Function | Test-User | 1.0.1 | PSWF | -| Function | Test-UserGroupRole | 1.0.1 | PSWF | -| Function | Write-Attribute | 1.0.1 | PSWF | +| Function | Add-DataSource | 1.1.0 | PSWF | +| Function | Add-JDBCDriver | 1.1.0 | PSWF | +| Function | Add-Module | 1.1.0 | PSWF | +| Function | Add-Resource | 1.1.0 | PSWF | +| Function | Add-SecurityDomain | 1.1.0 | PSWF | +| Function | Add-SecurityRole | 1.1.0 | PSWF | +| Function | Add-User | 1.1.0 | PSWF | +| Function | Add-UserGroupRole | 1.1.0 | PSWF | +| Function | Disable-DataSource | 1.1.0 | PSWF | +| Function | Disable-Deployment | 1.1.0 | PSWF | +| Function | Disable-RBAC | 1.1.0 | PSWF | +| Function | Enable-DataSource | 1.1.0 | PSWF | +| Function | Enable-Deployment | 1.1.0 | PSWF | +| Function | Enable-RBAC | 1.1.0 | PSWF | +| Function | Get-DeploymentStatus | 1.1.0 | PSWF | +| Function | Grant-SecurityRole | 1.1.0 | PSWF | +| Function | Invoke-DeployApplication | 1.1.0 | PSWF | +| Function | Invoke-JBossClient | 1.1.0 | PSWF | +| Function | Invoke-ReloadServer | 1.1.0 | PSWF | +| Function | Invoke-UndeployApplication | 1.1.0 | PSWF | +| Function | Read-Attribute | 1.1.0 | PSWF | +| Function | Read-DeploymentStatus | 1.1.0 | PSWF | +| Function | Read-Resource | 1.1.0 | PSWF | +| Function | Read-SecurityDomain | 1.1.0 | PSWF | +| Function | Read-ServerState | 1.1.0 | PSWF | +| Function | Remove-Attribute | 1.1.0 | PSWF | +| Function | Remove-DataSource | 1.1.0 | PSWF | +| Function | Remove-JDBCDriver | 1.1.0 | PSWF | +| Function | Remove-Module | 1.1.0 | PSWF | +| Function | Remove-Resource | 1.1.0 | PSWF | +| Function | Remove-SecurityDomain | 1.1.0 | PSWF | +| Function | Remove-SecurityRole | 1.1.0 | PSWF | +| Function | Remove-User | 1.1.0 | PSWF | +| Function | Remove-UserGroupRole | 1.1.0 | PSWF | +| Function | Test-DataSource | 1.1.0 | PSWF | +| Function | Test-DataSourceConnection | 1.1.0 | PSWF | +| Function | Test-Deployment | 1.1.0 | PSWF | +| Function | Test-JBossClientOutcome | 1.1.0 | PSWF | +| Function | Test-JDBCDriver | 1.1.0 | PSWF | +| Function | Test-Module | 1.1.0 | PSWF | +| Function | Test-Resource | 1.1.0 | PSWF | +| Function | Test-SecurityDomain | 1.1.0 | PSWF | +| Function | Test-SecurityRole | 1.1.0 | PSWF | +| Function | Test-ServerState | 1.1.0 | PSWF | +| Function | Test-User | 1.1.0 | PSWF | +| Function | Test-UserGroupRole | 1.1.0 | PSWF | +| Function | Write-Attribute | 1.1.0 | PSWF | ## Dependencies