Merge pull request #2790 from aignatov-bio/ai-sci-4866-implement-snapshotting-as-consequence

Add consequence for repository snapshotting [SCI-4866]
This commit is contained in:
aignatov-bio 2020-08-25 15:55:31 +02:00 committed by GitHub
commit 7a0dc13f3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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