Sha256: 792a20cd534f4ae628571f376190ae779f2fb16f672198e993df2e5d27202952

Contents?: true

Size: 996 Bytes

Versions: 9

Compression:

Stored size: 996 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Self
# Set: The card "Admin"
#
module Admin;
extend Card::Set
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/carrierwave/set/self/admin.rb"; end
add_to_basket(
  :tasks,
  name: :update_file_storage_locations,
  execute_policy: -> { Card.update_all_storage_locations },
  stats: {
    title: "cards with attachment",
    count: -> { Card.search(type_id: ["in", FileID, ImageID], return: :count) }
    # link_text: "update storage locations",
    # task: "update_file_storage_locations"
  }
)

add_to_basket(
  :tasks,
  name: :delete_upload_tmp_files,
  execute_policy: -> { Card.delete_tmp_files_of_cached_uploads },
  stats: {
    title: "tmp files of canceled uploads",
    count: -> { ::Card.draft_actions_with_attachment },
    link_text: "delete tmp files",
    task: "delete_tmp_files_of_cached_uploads"
  }
)
end;end;end;end;
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/carrierwave/set/self/admin.rb ~~

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
card-1.99.4 tmpsets/set/mod019-carrierwave/self/admin.rb
card-1.99.3 tmpsets/set/mod019-carrierwave/self/admin.rb
card-1.99.2 tmpsets/set/mod019-carrierwave/self/admin.rb
card-1.99.1 tmpsets/set/mod019-carrierwave/self/admin.rb
card-1.99.0 tmpsets/set/mod019-carrierwave/self/admin.rb
card-1.98.3 tmpsets/set/mod019-carrierwave/self/admin.rb
card-1.98.2 tmpsets/set/mod019-carrierwave/self/admin.rb
card-1.98.1 tmpsets/set/mod019-carrierwave/self/admin.rb
card-1.98.0 tmpsets/set/mod019-carrierwave/self/admin.rb