mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 11:42:19 -05:00
14 lines
290 B
Ruby
14 lines
290 B
Ruby
require "thor"
|
|
|
|
module Cli
|
|
class CreatorsCommand < Thor
|
|
namespace :creators
|
|
DESCRIPTION = "manage creators"
|
|
|
|
desc "prune", "removes all creators that aren't associated with any models"
|
|
def prune
|
|
Creator.find_each { it.destroy if it.models.empty? }
|
|
end
|
|
end
|
|
end
|