card-mod-machines 0.12.0 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +0,0 @@
1
- module ClassMethods
2
- def reset_script_machine
3
- Auth.as_bot do
4
- card = Card[:all, :script, :machine_output]
5
- if card
6
- card.update_columns trash: true
7
- card.expire
8
- Card::Virtual.where(right_id: MachineCacheID).delete_all
9
- end
10
- end
11
- end
12
-
13
- def reset_all_machines
14
- Auth.as_bot do
15
- Card.search(right: { codename: "machine_output" }).each do |card|
16
- card.update_columns trash: true
17
- card.expire
18
- end
19
- Card::Virtual.where(right_id: MachineCacheID).delete_all
20
- end
21
- end
22
- end