inspec/lib
Jerry Aldrich 668b8d82bf windows_task: Fix handling of multiple triggers
When using `schtasks` a list is returned if the task has multiple
triggers. This merges that list with the last item taking precedence.
This is how `Get-ScheduledTask` behaves.

Initially, I was going to rewrite this resource to use
`Get-ScheduledTask` but the original author purposely did not do this
so that PowerShell v3 would be supported. We only support PowerShell
v5, but I don't want to break any current users and this change didn't
seem to controversial to me.

If it gives us trouble, I recommend rewriting it to use
`Get-ScheduledTask`.

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2019-06-28 00:27:53 -07:00
..
bundles blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
fetchers Removing inspec/profile_vendor from inspec/base_cli. 2019-06-11 19:16:58 -07:00
inspec windows_task: Fix handling of multiple triggers 2019-06-28 00:27:53 -07:00
matchers blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
plugins Removing extra requires from inspec/profile. 2019-06-11 21:32:22 -07:00
resource_support blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
resources chefstyle -a cleanup 2019-06-11 18:52:38 -07:00
source_readers blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00
inspec.rb blindly applied chefstyle -a 2019-06-11 18:52:03 -07:00