In order to build a jobs workspace, start in an empty folder and create
./jobs sub folder inside it. All your job classes go in this folder.
The name of this folder is configurable.
See Also: Configuration
All the Ruby files in the
./jobs folder will be loaded by all of Jobly's
commands. It is recommended to only keep Job classes in this folder.
If you need to load additional code, you can use the
See Also: Loading Additional Code
Your job classes should simply inherit from
Jobly::Job, like this:
class Hello < Jobly::Job def execute # Your code here end end