diff --git a/app/models/my_module_status_consequences/repository_snapshot.rb b/app/models/my_module_status_consequences/repository_snapshot.rb new file mode 100644 index 000000000..6ad7c3aec --- /dev/null +++ b/app/models/my_module_status_consequences/repository_snapshot.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module MyModuleStatusConsequences + class RepositorySnapshot < MyModuleStatusConsequence + def call(my_module) + my_module.assigned_repositories.each do |repository| + repository.provision_snapshot(my_module) + end + end + end +end