Commits on May 25, 2016

  1. (maint) Fix changelog release dates

    The release dates for v2.0.0 and v2.0.1 had the incorrect date.  This
    commit ammends the release date
    
    [ci skip]
    glennsarti committed May 25, 2016
    Configuration menu
    Copy the full SHA
    50522da View commit details
    Browse the repository at this point in the history
  2. Merge pull request #111 from glennsarti/ticket/maint/fix/year-typo

    (maint) Fix changelog release dates
    ferventcoder committed May 25, 2016
    Configuration menu
    Copy the full SHA
    85aed9e View commit details
    Browse the repository at this point in the history
  3. Merge branch 'stable'

    * stable:
      (maint) Fix changelog release dates
      (FM-5241) Release Powershell 2.0.1
    glennsarti committed May 25, 2016
    Configuration menu
    Copy the full SHA
    52d2c43 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2016

  1. (MODULES-3347) Handle PS Verbose Output in Tests

    When the PowerShell Informational Output Streams were implemented in
    MODULES-3137 tests were added to ensure each output stream produced
    the correct text. The Verbose test proved brittle because we forced
    $VerbosePreference to Continue, which caused extra verbose messages
    to be written because of PowerShell module auto loading.
    
    This fixes the test to look for our text instead of requiring only
    our text
    
    Also update the Debug / Warning / Error tests to use randomly
    generated output, so that we don't receive false positive results.
    
    Paired-with: Ethan Brown <ethan@puppet.com>
    jpogran authored and Iristyle committed May 26, 2016
    Configuration menu
    Copy the full SHA
    99de7f7 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'pr/112'

    * pr/112:
      (MODULES-3347) Handle PS Verbose Output in Tests
    
    closes #112
    Iristyle committed May 26, 2016
    Configuration menu
    Copy the full SHA
    5181562 View commit details
    Browse the repository at this point in the history
  3. (MODULES-2634) Add additional try/catch tests

     - Verify that we have actually executed a try / catch and exit with
       the expected status
    
    Paired-with: James Pogran <james.pogran@puppet.com>
    Iristyle committed May 26, 2016
    Configuration menu
    Copy the full SHA
    112d918 View commit details
    Browse the repository at this point in the history
  4. (MODULES-2634) Rewrite try/catch acceptance tests

     - The tests introduced in 14e0be3
       were insufficient at verifying that code inside of a try or catch
       block was actually being executed due to how the assertions were
       setup.
    
       Rewrite the tests to separately verify that code inside a try or
       a catch block will produce a file, whose contents can then be
       verified.  Also assert that code we do not expect to be executed
       does not write files.
    
    Paired-with: James Pogran <james.pogran@puppet.com>
    Iristyle committed May 26, 2016
    Configuration menu
    Copy the full SHA
    b401927 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2016

  1. (maint) Remove require_relative for Ruby 1.8.7

     - Because this module can be run on Puppet 3.8, which can run on
       the system Ruby of a Linux machine (such as CentOS 6), it's
       possible that the cdoe will be parsed in a Ruby 1.8.7 environment.
    
       Move to require with a manually constructed path, which is the
       effectively the same thing as require_relative in newer Rubies.
    Iristyle committed May 27, 2016
    Configuration menu
    Copy the full SHA
    540c01f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #114 from Iristyle/maint/stable/ruby-187-compatibi…

    …lity
    
    (maint) Remove require_relative for Ruby 1.8.7
    ferventcoder committed May 27, 2016
    Configuration menu
    Copy the full SHA
    81f9376 View commit details
    Browse the repository at this point in the history
  3. (MODULES-3347) Handle PS Verbose Output in Tests

    When the PowerShell Informational Output Streams were implemented in
    MODULES-3137 tests were added to ensure each output stream produced
    the correct text. The Verbose test proved brittle because we forced
    $VerbosePreference to Continue, which caused extra verbose messages
    to be written because of PowerShell module auto loading.
    
    This fixes the test to look for our text instead of requiring only
    our text
    
    Also update the Debug / Warning / Error tests to use randomly
    generated output, so that we don't receive false positive results.
    
    Paired-with: Ethan Brown <ethan@puppet.com>
    jpogran authored and Iristyle committed May 27, 2016
    Configuration menu
    Copy the full SHA
    38cae11 View commit details
    Browse the repository at this point in the history
  4. (MODULES-3406) Refactor PowerShell code execution to function

     - Simple change in preparation of a larger refactor, breaking out
       the main code path inside invoke_ps_command.erb to a new function
       Invoke-PowerShellUserCode
    
       That cmdlet is now executed as the only thing that this script
       does.  This will allow this templated file to later be reduced to
       only invoking this cmdlet.
    
       Note that there are a few variables defined in global scope that
       now need to be explicitly declared as such, with their creation
       and access now living inside the new function as part of the
       refactor:
    
       $global:puppetPSHost - Puppet.PuppetPSHost
       $global:runspace - System.Management.Automation.Runspaces.Runspace
       $global:environmentVariables - HashTable
       $global:psVariables - Array
    Iristyle committed May 27, 2016
    Configuration menu
    Copy the full SHA
    dbfe4a3 View commit details
    Browse the repository at this point in the history
  5. (MODULES-3406) Load PowerShell init code only once

     - Previously, we asked the PowerShell parser to load way more code than
       necessary, which can slow it down.
    
       Instead, pre-load all the code required for our process, then only
       ask for user specified code to be parsed and executed per each
       call.
    Iristyle committed May 27, 2016
    Configuration menu
    Copy the full SHA
    9c0fc53 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #113 from Iristyle/ticket/master/MODULES-2634-try-…

    …catch-tests-redux-again
    
    (MODULES-2634) Try / Catch Test Updates
    ferventcoder committed May 27, 2016
    Configuration menu
    Copy the full SHA
    ad01d1a View commit details
    Browse the repository at this point in the history
  7. (MODULES-3406) Inline user PowerShell code string

     - Previously the ERB template engine was created for a simple block
       of user code to execute.
    
       Instead inline the small bit of code to avoid any associated
       performance penalties with reading files off disk, engaging the
       ERB engine, etc.
    
       This may not result in much of a measurable gain
    Iristyle committed May 27, 2016
    Configuration menu
    Copy the full SHA
    09c6bb1 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2016

  1. (maint) modsync update

    Updated gitignore from modsync
    glennsarti committed Jun 1, 2016
    Configuration menu
    Copy the full SHA
    e337523 View commit details
    Browse the repository at this point in the history
  2. (maint) Remove test file from repository

    This commit removes a binary test file which was committed in error.
    glennsarti committed Jun 1, 2016
    Configuration menu
    Copy the full SHA
    6bb7b35 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #117 from glennsarti/master

    (MODULES-2634) Remove unnecessary binary test file
    Iristyle committed Jun 1, 2016
    Configuration menu
    Copy the full SHA
    2dff1f2 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2016

  1. (MODULES-2634) Fix tests for non-Windows agents

     - These tests were initially validated against a local definition
       that only included Windows agents.
    
       However, in CI, there are masters that are configured as agents as
       well, and some of these tests don't make sense.
    
       Refactor all the tests to run manifests only on Windows agents.
    Iristyle committed Jun 2, 2016
    Configuration menu
    Copy the full SHA
    1fb195c View commit details
    Browse the repository at this point in the history
  2. Merge pull request #118 from Iristyle/ticket/master/MODULES-2634-fixu…

    …p-tests-for-non-Windows-agents
    
    (MODULES-2634) Fix tests for non-Windows agents
    glennsarti committed Jun 2, 2016
    Configuration menu
    Copy the full SHA
    6569204 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2016

  1. Merge remote-tracking branch 'origin/stable'

    * origin/stable:
      (MODULES-3347) Handle PS Verbose Output in Tests
      (maint) Remove require_relative for Ruby 1.8.7
    Iristyle committed Jun 5, 2016
    Configuration menu
    Copy the full SHA
    418ffbd View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2016

  1. (MODULES-2634) Fix PS try/catch in puppet 3.X

    In this module, if a user using puppet 3.X  uses a try/catch
    statement without a newline at the end it will either be entirely
    ignored or it will fail. This is an artifact of how we are using
    powershell in older puppet versions, i.e. through a file redirection
    into the Command paramter to powershell.exe.
    
    If we add a newline to the end of the tempfile that is passed to PS,
    we can execute any logic construct in PS. This fix uses `puts` instead
    of `write`, which automatically adds a newline to the end of the script
    content.
    jpogran committed Jun 8, 2016
    Configuration menu
    Copy the full SHA
    c81726d View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2016

  1. Merge pull request #119 from jpogran/ticket/master/MODULES-2634-try-c…

    …atch-fix-in-v1
    
    (MODULES-2634) Fix PS try/catch in puppet 3.X
    Iristyle authored Jun 9, 2016
    Configuration menu
    Copy the full SHA
    75d2539 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2016

  1. (MODULES-2634) PowerShell Module doesn't run template with try/catch

    Previously, the PowerShell module was not correctly executing
    code inside of try / catch blocks in a templated script on Windows
    2008 R2 x64, PE version 3.2.3.
    
    This commit appends a newline to the manifest, since
    PowerShell needs multiple lines to correctly parse it.
    DLuCJ committed Jun 14, 2016
    Configuration menu
    Copy the full SHA
    ad5fdbe View commit details
    Browse the repository at this point in the history
  2. Merge pull request #120 from DLuCJ/master

    (MODULES-2634) PowerShell Module doesn't run template with try/catch
    glennsarti authored Jun 14, 2016
    Configuration menu
    Copy the full SHA
    9950927 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2016

  1. (MODULES-3536) modsync update

    Module updated with lastest modsync settings
    glennsarti committed Jun 29, 2016
    Configuration menu
    Copy the full SHA
    2a0b513 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #122 from glennsarti/stable

    (MODULES-3536) modsync update
    glennsarti authored Jun 29, 2016
    Configuration menu
    Copy the full SHA
    f5084ef View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2016

  1. Merge remote-tracking branch 'origin/stable'

    * origin/stable:
      (MODULES-3536) modsync update
    glennsarti committed Jun 30, 2016
    Configuration menu
    Copy the full SHA
    0906165 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #115 from Iristyle/ticket/stable/MODULES-3406-opti…

    …mize-powershell-parse-time
    
    (MODULES-3406) Optimize PowerShell parse time
    glennsarti authored Jun 30, 2016
    Configuration menu
    Copy the full SHA
    4da7dbc View commit details
    Browse the repository at this point in the history
  3. Merge branch 'stable'

    * stable:
      (MODULES-3406) Inline user PowerShell code string
      (MODULES-3406) Load PowerShell init code only once
      (MODULES-3406) Refactor PowerShell code execution to function
    glennsarti committed Jun 30, 2016
    Configuration menu
    Copy the full SHA
    3072e3e View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2016

  1. Configuration menu
    Copy the full SHA
    f7b4ac0 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #124 from glennsarti/ticket/stable/PUP6473

    (maint) modulesync 99efa6139
    glennsarti authored Jul 5, 2016
    Configuration menu
    Copy the full SHA
    23ad39f View commit details
    Browse the repository at this point in the history
  3. Merge branch 'stable'

    * stable:
      (maint) modulesync 99efa6139
    glennsarti committed Jul 5, 2016
    Configuration menu
    Copy the full SHA
    4f6c915 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2016

  1. Configuration menu
    Copy the full SHA
    75304b4 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #126 from glennsarti/ticket/stable/PUP6477

    (maint) modulesync 724153ca2
    glennsarti authored Jul 7, 2016
    Configuration menu
    Copy the full SHA
    859bb2d View commit details
    Browse the repository at this point in the history
  3. Merge branch 'stable'

    * stable:
      (maint) modulesync 724153ca2
    glennsarti committed Jul 7, 2016
    Configuration menu
    Copy the full SHA
    4ca8719 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2016

  1. (MODULES-3468) Update README.md

    This commit
    - Adds the minimum powershell version to the Limitations section
    - Removes Window 2003 as a supported OS for this module
    - Adds a space in the markdown headers between the hash and text.  While this
    renders correctly in GitHub and the Puppet Forge some editors and parsers
    require a white space.
    
    [ci skip]
    glennsarti committed Jul 8, 2016
    Configuration menu
    Copy the full SHA
    58de956 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #127 from glennsarti/ticket/master/modules-3468-mi…

    …n-ps-ver
    
    (MODULES-3468) Update README.md
    ferventcoder authored Jul 8, 2016
    Configuration menu
    Copy the full SHA
    6d5352d View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' into stable

    * master:
      (MODULES-3468) Update README.md
      (MODULES-2634) PowerShell Module doesn't run template with try/catch
      (MODULES-2634) Fix PS try/catch in puppet 3.X
      (MODULES-2634) Fix tests for non-Windows agents
      (maint) Remove test file from repository
      (maint) modsync update
      (MODULES-2634) Rewrite try/catch acceptance tests
      (MODULES-2634) Add additional try/catch tests
      (MODULES-3347) Handle PS Verbose Output in Tests
    glennsarti committed Jul 8, 2016
    Configuration menu
    Copy the full SHA
    85d6e18 View commit details
    Browse the repository at this point in the history
  4. (FM-5344) Prepare for release 2.0.2

    This commit prepares for the release of version 2.0.2 of the powershell module.
    
    - Update CHANGELOG
    - Update version in metadata
    
    [ci skip]
    glennsarti committed Jul 8, 2016
    Configuration menu
    Copy the full SHA
    81d53f8 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #128 from glennsarti/ticket/stable/FM-5344-release…

    …-2.0.2
    
    (FM-5344) Prepare for release 2.0.2
    ferventcoder authored Jul 8, 2016
    Configuration menu
    Copy the full SHA
    c58158f View commit details
    Browse the repository at this point in the history