Sha256: b2105a51bc2d8b5c7f34e12ecb858a101f58d4063dddd20436d723dc53e07536

Contents?: true

Size: 897 Bytes

Versions: 10

Compression:

Stored size: 897 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class All
# Set: All cards (ResetMachines)
#
module ResetMachines;
extend Card::Set
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/machines/set/all/reset_machines.rb"; end
module ClassMethods
  def reset_script_machine
    Auth.as_bot do
      card = Card[:all, :script, :machine_output]
      if card
        card.update_columns trash: true
        card.expire
        Card::Virtual.where(right_id: MachineCacheID).delete_all
      end
    end
  end

  def reset_all_machines
    Auth.as_bot do
      Card.search(right: { codename: "machine_output" }).each do |card|
        card.update_columns trash: true
        card.expire
      end
      Card::Virtual.where(right_id: MachineCacheID).delete_all
    end
  end
end
end;end;end;end;
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/machines/set/all/reset_machines.rb ~~

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
card-1.100.0 tmpsets/set/mod014-machines/all/reset_machines.rb
card-1.99.4 tmpsets/set/mod014-machines/all/reset_machines.rb
card-1.99.3 tmpsets/set/mod014-machines/all/reset_machines.rb
card-1.99.2 tmpsets/set/mod014-machines/all/reset_machines.rb
card-1.99.1 tmpsets/set/mod014-machines/all/reset_machines.rb
card-1.99.0 tmpsets/set/mod014-machines/all/reset_machines.rb
card-1.98.3 tmpsets/set/mod014-machines/all/reset_machines.rb
card-1.98.2 tmpsets/set/mod014-machines/all/reset_machines.rb
card-1.98.1 tmpsets/set/mod014-machines/all/reset_machines.rb
card-1.98.0 tmpsets/set/mod014-machines/all/reset_machines.rb