Sha256: 2dd403479a7f5dd32d506c33f9de70f049d063170d3f2e7f651dbbff3d8a5abd

Contents?: true

Size: 413 Bytes

Versions: 9

Compression:

Stored size: 413 Bytes

Contents

# TODO: We can't detect file removal for folder group

include_set List

def modname
  codename.to_s.gsub(/^mod_/, "")
end

def ensure_mod_asset_card asset_type
  asset_card = fetch_mod_assets_card asset_type
  return unless asset_card.assets_path
  asset_card.save! if asset_card.new?
  asset_card.name
end

private

def fetch_mod_assets_card asset_type
  Card.fetch [name, asset_type], new: { type: :list }
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
card-mod-assets-0.16.0 set/type/mod.rb
card-mod-assets-0.15.6 set/type/mod.rb
card-mod-assets-0.15.5 set/type/mod.rb
card-mod-assets-0.15.4 set/type/mod.rb
card-mod-assets-0.15.3 set/type/mod.rb
card-mod-assets-0.15.2.pre1 set/type/mod.rb
card-mod-assets-0.15.1.1 set/type/mod.rb
card-mod-assets-0.15.1 set/type/mod.rb
card-mod-assets-0.15.0 set/type/mod.rb