specinfra 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70f7556e9dcace36186080224bef836c802b3fcf
4
- data.tar.gz: ae8e0d6ece4a05af3cf412d192e2037f2d2560c3
3
+ metadata.gz: 15732552ecb38106eeeaddf39492ea2612181a8d
4
+ data.tar.gz: 0014a3d0dead5a721dfca1944c8627de316b12de
5
5
  SHA512:
6
- metadata.gz: 407b914ed6cac6229abef08620af2f46e03742bc8ff3ea4a06710b6576af9a64f77844ac31ab51787b7e77d65b9b37f0d0849ec24fa52004bcab03f41b131188
7
- data.tar.gz: 48b97124a501b9b53b1ea54f6713b6414aef318da473a2fa09d090a09744e8c5a9165963c063620ee5d841bd6557abd890c16a46e01c41b2e75134e8c82cfce1
6
+ metadata.gz: 330a3e39284e1c610adbda642acb90fb1b35898ad3c64cfb7aef284a2ac9c2a2d7660681bb1f134935c5fd3ab1bb51e74942aa971afa45103fe82ed67f6d07b6
7
+ data.tar.gz: 587aff1fff9c7d78ee72aa34d30cc5f0b919fab6ec82d0f2e0678f6e8fbf203f1383854b67159e319b8d1a807a0bb493769996dc70b049cabb09d80154dfbec3
@@ -0,0 +1,7 @@
1
+ function FindScheduledTask
2
+ {
3
+ param($name)
4
+
5
+ $task = schtasks /query /v /fo csv /TN "$name" | ConvertFrom-CSV
6
+ return $task
7
+ }
@@ -305,6 +305,13 @@ module SpecInfra
305
305
  end
306
306
  end
307
307
 
308
+ def check_scheduled_task(name)
309
+ Backend::PowerShell::Command.new do
310
+ using 'find_scheduled_task.ps1'
311
+ exec "(FindScheduledTask -name '#{name}').TaskName -eq '\\#{name}'"
312
+ end
313
+ end
314
+
308
315
  private
309
316
 
310
317
  def item_has_attribute item, attribute
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "1.10.0"
2
+ VERSION = "1.11.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
@@ -110,6 +110,7 @@ files:
110
110
  - lib/specinfra/backend/powershell/support/find_iis_component.ps1
111
111
  - lib/specinfra/backend/powershell/support/find_installed_application.ps1
112
112
  - lib/specinfra/backend/powershell/support/find_installed_hot_fix.ps1
113
+ - lib/specinfra/backend/powershell/support/find_scheduled_task.ps1
113
114
  - lib/specinfra/backend/powershell/support/find_service.ps1
114
115
  - lib/specinfra/backend/powershell/support/find_user.ps1
115
116
  - lib/specinfra/backend/powershell/support/find_usergroup.ps1