Sha256: b4d024295ab861cc8aa97cfdeeaee21b088981425f02f56c1cdde9edd89031bd
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
namespace :card do namespace :mod do desc "list current mods in load order" task :list do Cardio.mods.each { |m| puts "#{m.name}: #{m.path}".green } end desc "symlink from deck public/{modname} to mod's public directory" task :symlink do FileUtils.rm_rf public_mod_dir FileUtils.mkdir_p public_mod_dir Cardio::Mod.dirs.each_subpath "public" do |mod, target| link = public_mod_dir mod FileUtils.rm_rf link FileUtils.ln_sf target, link end end desc "list mods still installed but not configured for use" task leftover: :environment do Cardio::Mod.leftover.each { |m| puts m.modname.yellow } end desc "uninstall leftover mods" task uninstall: :environment do puts "uninstalling unconfigured mods" Cardio::Mod.ensure_uninstalled end desc "install all mods" task install: :environment do puts "installing mods" Card::Auth.signin :wagn_bot.card # Cardio.config.compress_assets = true # should not be here, imo #efm Cardio::Mod.ensure_installed end private def public_mod_dir subdir=nil File.join(*[Rails.public_path, "mod", subdir].compact) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
card-1.108.1 | mod/core/lib/tasks/card/mod.rake |
card-1.108.0 | mod/core/lib/tasks/card/mod.rake |