Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 122
    • Merge requests 122
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !1058

Merged
Created Oct 06, 2021 by Xavier Thompson@xavier_thompsonOwner

recipe/promise_plugin: Improve options

  • Overview 5
  • Commits 1
  • Changes 1

Refactor promise_plugin recipe options:

  • class: name of the class implementing the promise
  • module: dotted module path from which to import the promise class
  • file: file to exec which allows a promise to be implemented outside of an egg

The class and module option are just a cleanup/refactoring of the previous content or import option.

The file option is new, it's an alternative to module that allows a promise class to be implemented in a standalone file (as opposed to an egg) and "included" in the plugin via exec instead of imported from an egg.

Edited Oct 06, 2021 by Xavier Thompson
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: promise_plugin_recipe_improvement
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7