mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
fw/plugin: move cleanup_assets to TargetedPlugin
Move cleanup_assets from Workload up into TargetedPlugin. This way, Instruments may also utilize it if they deploy assets. More generally, it makes sense for it to be inside TargetedPlugin, as any plugin that interacts with the target may conceivably need to clean up.
This commit is contained in:
parent
44cead2f76
commit
79dec810f3
@ -384,6 +384,16 @@ class TargetedPlugin(Plugin):
|
||||
"""
|
||||
|
||||
suppoted_targets = []
|
||||
parameters = [
|
||||
Parameter('cleanup_assets', kind=bool,
|
||||
global_alias='cleanup_assets',
|
||||
aliases=['clean_up'],
|
||||
default=True,
|
||||
description="""
|
||||
If ``True``, assets that are deployed or created by the
|
||||
plugin will be removed again from the device.
|
||||
"""),
|
||||
]
|
||||
|
||||
@classmethod
|
||||
def check_compatible(cls, target):
|
||||
|
@ -44,14 +44,6 @@ class Workload(TargetedPlugin):
|
||||
kind = 'workload'
|
||||
|
||||
parameters = [
|
||||
Parameter('cleanup_assets', kind=bool,
|
||||
global_alias='cleanup_assets',
|
||||
aliases=['clean_up'],
|
||||
default=True,
|
||||
description="""
|
||||
If ``True``, assets that are deployed or created as part of the
|
||||
workload will be removed again from the device.
|
||||
"""),
|
||||
Parameter('uninstall', kind=bool,
|
||||
default=True,
|
||||
description="""
|
||||
|
Loading…
x
Reference in New Issue
Block a user