Class: Whenever::JobList

Inherits:
Object
  • Object
show all
Defined in:
lib/winever.rb

Instance Method Summary collapse

Instance Method Details

#remove_existing_tasks(*names) ⇒ Object

If transitionning to Winever and you already have scheduled tasks that you also want removed when installing your Winever schedule, you can give their paths to this functions and Winever will take care of it!



14
15
16
# File 'lib/winever.rb', line 14

def remove_existing_tasks *names
  Winever::WheneverInterface.remove_existing_tasks *names
end

#winever?Boolean

We are running from winever? If you need tasks only on your Windows or your Linux servers, you can use #winever?

Returns:

  • (Boolean)


8
9
10
# File 'lib/winever.rb', line 8

def winever?
  Winever::WheneverInterface.run_from_winever?
end