Sha256: ecbba9a2c94ae682a34df913d93a4dc4602e64e396de8944fe06c34944ee26fd
Contents?: true
Size: 1.97 KB
Versions: 2
Compression:
Stored size: 1.97 KB
Contents
# typed: false # frozen_string_literal: true require_relative "base" module Hephaestus class CoreGenerator < Generators::Base def controllers remove_file("app/controllers/application_controller.rb") copy_file("app/controllers/application_controller.rb", "app/controllers/application_controller.rb") copy_file("app/controllers/root_controller.rb", "app/controllers/root_controller.rb") copy_file("app/controllers/settings_controller.rb", "app/controllers/settings_controller.rb") copy_file("app/controllers/staff_controller.rb", "app/controllers/staff_controller.rb") copy_file("app/controllers/yetto_controller.rb", "app/controllers/yetto_controller.rb") copy_file("app/controllers/concerns/authable.rb", "app/controllers/concerns/authable.rb") end def jobs copy_file("app/jobs/application_job.rb", "app/jobs/application_job.rb") copy_file("app/jobs/update_yetto_job.rb", "app/jobs/update_yetto_job.rb") end def libs copy_file("app/lib/body_parameter/yetto_parameters.rb", "app/lib/body_parameter/yetto_parameters.rb") copy_file("app/lib/constants/app.rb", "app/lib/constants/#{app_name}.rb") copy_file("app/lib/headers/yetto.rb", "app/lib/headers/yetto.rb") copy_file("app/lib/path_parameter/yetto_parameters.rb", "app/lib/path_parameter/yetto_parameters.rb") directory("app/lib/plug_app", "app/lib/#{app_name.underscore}") copy_file("app/lib/body_parameter.rb", "app/lib/body_parameter.rb") copy_file("app/lib/headers.rb", "app/lib/headers.rb") copy_file("app/lib/path_parameter.rb", "app/lib/path_parameter.rb") end def serializers copy_file("app/serializers/error_serializer.rb", "app/serializers/error_serializer.rb") end def services copy_file("app/services/yetto_service.rb", "app/services/yetto_service.rb") end def views copy_file("app/views/settings/index.json.jbuilder", "app/views/settings/index.json.jbuilder") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hephaestus-0.1.2 | lib/hephaestus/generators/core_generator.rb |
hephaestus-0.1.1 | lib/hephaestus/generators/core_generator.rb |