polaris.Component.get_or_create_shared_step
- Component.get_or_create_shared_step(step_cls, subdir, config, config_filename=None, **kwargs)[source]
Get a shared step from the component if it exists, otherwise create and add it.
- Parameters:
step_cls (type) – The class of the step to create if it doesn’t exist
subdir (str) – The subdirectory for the step
config (polaris.config.PolarisConfigParser) – The shared config options for this step
config_filename (str) – the name of the symlink to the shared configuration file in this step
kwargs (dict) – Arguments to pass to the step constructor
- Returns:
step (polaris.Step) – The shared step instance