Programmatically installing themes

For a customer we’re in need of programmatically managing the installation of themes and theme components. Would there be any interest in including this in Discourse?

You can see the current (WIP) code here: https://github.com/discourse/discourse/compare/master...rrooding:feature/rake_themes_installer?expand=1

It works a bit the same as importing SiteSettings.

$ bundle exec rake themes:install < config/themes.yml
  example1: is already installed
  example2: installed from https://github.com/example/theme.git
  doesntexist: Error cloning git repository, access is denied or repository is not found

Results:
 Installed: 1
 Updated:   0
 Skipped:   1
 Errors:    1
3 Likes