2020-05-01 17:11:14 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-06-12 20:03:43 +00:00
|
|
|
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
|
|
|
|
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
|
2020-05-01 17:11:14 +00:00
|
|
|
require 'rails/generators/rails/plugin/plugin_generator'
|
|
|
|
class PluginBuilder < Rails::PluginBuilder
|
|
|
|
def license
|
|
|
|
template "LICENSE"
|
|
|
|
template "AGPL-3.0.txt"
|
|
|
|
template "LGPL-3.0.txt"
|
|
|
|
template "GPL-3.0.txt"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
module Rails
|
|
|
|
module Generators
|
|
|
|
class PluginGenerator
|
|
|
|
def source_paths
|
|
|
|
[File.expand_path("templates", __dir__)]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|