supportedEnsure property

  1. @override
Set<Ensure> get supportedEnsure
override

The Ensure values this type can meaningfully be asked for.

Checked when a blueprint is saved, so ensure: running on a resource that installs a command is refused with the blueprint in front of the author, rather than at 3am on the node.

Implementation

@override
Set<Ensure> get supportedEnsure => const {
  Ensure.present,
  Ensure.installed,
  Ensure.latest,
  Ensure.running,
  Ensure.stopped,
  Ensure.absent,
};