Class: Specinfra::Command::Windows::Base::ScheduledTask

Inherits:
Specinfra::Command::Windows::Base show all
Defined in:
lib/specinfra/command/windows/base/scheduled_task.rb

Class Method Summary collapse

Methods inherited from Specinfra::Command::Windows::Base

create

Class Method Details

.check_exists(name) ⇒ Object



3
4
5
6
7
8
# File 'lib/specinfra/command/windows/base/scheduled_task.rb', line 3

def check_exists(name)
  Backend::PowerShell::Command.new do
    using 'find_scheduled_task.ps1'
    exec "(FindScheduledTask -name '#{name}').TaskName -eq '\\#{name}'"
  end
end