Driver or app

When looking at the source code for a groovy app/driver - how can you tell which it is?

There's probably a better answer, but drivers will have capabilities/attributes that are defined. Apps will not.

1 Like

Drivers start with metadata:

metadata {
    definition (
        ...
    )
}

Apps just start with definition:

definition(
    ...
)
4 Likes

Thanks guys - I'm on the right road now.

1 Like