Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Extendable base tasks #66

Open
blackandred opened this issue Jan 11, 2021 · 0 comments
Open

Extendable base tasks #66

blackandred opened this issue Jan 11, 2021 · 0 comments
Assignees
Labels
FEATURE New feature or request high priority
Milestone

Comments

@blackandred
Copy link
Contributor

  1. Add a possibility to extend tasks in YAML, in Python just extend class inside Makefile as usual.
  2. Add visibility attribute to TaskDeclaration, so the :task task can hide internal "intermediate" tasks - add optional switch "--private" in :tasks to see such tasks
  3. Add configure() inside TaskInterface and in YAML, that would be a Python code executed right after constructor. Create a "configuration" stage for tasks and execute it before argparse. It's a place without Context access, just the class object to set attributes, settings.
  4. Add inside() Python method and YAML element. It should be invoked by execute() method and supported by task. Depending on the task it could be a bash/php/other language code executed inside docker container, Python code executed in context of a Task or everything else - Task that is extended decides about the implementation.
tasks:
    :test:in-docker:
            extends: rkd.standardlib.BaseInDocker
            visibility: private
            # executes, right after task is constructed, before argparse and execution
            configure: |
                this: rkd.standardlib.BaseInDocker
                this.set_argument('--image', 'alpine:3.12') # argparse arguments
                this.set_image('alpine:3.12')               # internal arguments/variables
            # executes when task is executed. Handled and supported inside of execute() method of a task. Not all tasks may implement this.
            inside: |
                ps aux
                uname -a
@blackandred blackandred added FEATURE New feature or request high priority labels Jan 11, 2021
@blackandred blackandred added this to the RKD 2.4 - be more Gradle-like milestone Jan 11, 2021
@blackandred blackandred modified the milestones: RKD x.y - be more Gradle-like, RKD 3.0 Jun 24, 2021
@blackandred blackandred self-assigned this Jun 24, 2021
blackandred added a commit that referenced this issue Jun 25, 2021
blackandred added a commit that referenced this issue Jun 25, 2021
blackandred added a commit that referenced this issue Jun 25, 2021
blackandred added a commit that referenced this issue Jun 28, 2021
blackandred added a commit that referenced this issue Jul 3, 2021
…cept from proxy class to ast static analysis
blackandred added a commit that referenced this issue Jul 6, 2021
blackandred added a commit that referenced this issue Jul 6, 2021
blackandred added a commit that referenced this issue Jul 14, 2021
blackandred added a commit that referenced this issue Jul 14, 2021
blackandred added a commit that referenced this issue Jul 14, 2021
blackandred added a commit that referenced this issue Jul 14, 2021
blackandred added a commit that referenced this issue Aug 14, 2021
blackandred added a commit that referenced this issue Aug 14, 2021
blackandred added a commit that referenced this issue Aug 14, 2021
blackandred added a commit that referenced this issue Aug 15, 2021
blackandred added a commit that referenced this issue Aug 15, 2021
blackandred added a commit that referenced this issue Aug 15, 2021
blackandred added a commit that referenced this issue Aug 17, 2021
blackandred added a commit that referenced this issue Aug 18, 2021
blackandred added a commit that referenced this issue Aug 19, 2021
blackandred added a commit that referenced this issue Aug 19, 2021
…est built-in mechanism that is colliding
blackandred added a commit that referenced this issue Aug 19, 2021
blackandred added a commit that referenced this issue Aug 20, 2021
blackandred added a commit that referenced this issue Aug 21, 2021
…cution stage usage, extract .gitignore support into `IOBaseTask`, cover with tests, fix gitignore support
blackandred added a commit that referenced this issue Aug 26, 2021
blackandred added a commit that referenced this issue Aug 27, 2021
blackandred added a commit that referenced this issue Aug 27, 2021
blackandred added a commit that referenced this issue Aug 28, 2021
…lists which resulted in [':', 't', 'e', 's', 't'] instead of [':test']
blackandred added a commit that referenced this issue Aug 28, 2021
blackandred added a commit that referenced this issue Aug 28, 2021
blackandred added a commit that referenced this issue Aug 28, 2021
blackandred added a commit that referenced this issue Aug 28, 2021
blackandred added a commit that referenced this issue Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FEATURE New feature or request high priority
Projects
None yet
Development

No branches or pull requests

1 participant