Skip to content

Describe does not consider environment #21

@timlkelly

Description

@timlkelly

The rake onesie:describe task does not consider the active environment when listing available tasks to run. For instance, if there's a task intended only for production through the allowed_enivornments macro, the DescribeTasks class will still consider it a pending task if you check in development. Which technically it is. However, it will never run in development.

The current design designates the allowed environments in the task class itself and the DescribeTasks uses Manager#pending_tasks to check the available tasks to run, which uses the TaskProxy and so the class itself isn't loaded yet. To solve this, I think we'll need to load the task code to filter the tasks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions