23 lines
512 B
Ruby
23 lines
512 B
Ruby
# frozen_string_literal: true
|
|
|
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
|
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
|
|
|