-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource for windows scheduled task #1214
Comments
@modille Great idea. Are you going to write a PR for that? |
@chris-rock unfortunately I don't have time at the moment, so I just used the command resource as a workaround |
Hello @modille My name is Gary My colleague and I are learning ruby and your suggestion might be something we could get our teeth stuck into, can't promise it would get commited into core but we might be able to get something running that you could import into a compliance profile as a library and use. Could you give me your thoughts on the spec. We may have to get a stear later with resource namespace but thats easy to change
and look to have at least these matches
I think that should get us something we could use? Let me know what you think, |
Thanks for being willing to contribute this, @username-is-already-taken2. I'm not entirely sure about the criteria around enabled/disabled/scheduled -- for example, I think other possible states are Queued and Unknown, so you'd have to account for those. Otherwise, those matchers would be very helpful in my opinion. |
Hi Together @cdbeard2016 and I have made some good progress with this and we have something ready for testing changed a couple of things, the resource is now Here are some examples
feel free to clone it from here https://github.com/username-is-already-taken2/windows_task
if you just want to run it direct from github Either way if you could let me know how you get on that would be great. Thanks |
This was made available with #1306 |
A resource for
windows_scheduled_task
would be helpful.Even just having an
exists
matcher, similar to what ServerSpec has:https://github.com/mizzy/serverspec/blob/master/lib/serverspec/type/windows_scheduled_task.rb#L3
The Powershell query used there is
See:
The text was updated successfully, but these errors were encountered: