mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
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:
commit
7a0dc13f3d
1 changed files with 11 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue