Sha256: fd1345058a46e18c61ee3b9354015a18448ba5df53663093ecddac1b52f56819
Contents?: true
Size: 646 Bytes
Versions: 58
Compression:
Stored size: 646 Bytes
Contents
# typed: false # frozen_string_literal: true require_relative "base" module Hephaestus class LibGenerator < Generators::Base def lib_plug directory("lib/plug_app", "lib/#{app_name.underscore}") remove_file("lib/constants/plug-#{short_app_name}.rb") end def lib_tasks directory("lib/tasks", "lib/tasks") end def plug_schema copy_file("lib/plug_app/schemas/api/2023-03-06/paths/plug.json", "lib/#{app_name.underscore}/schemas/api/2023-03-06/paths/#{short_app_name.underscore}.json") remove_file("lib/#{app_name.underscore}/schemas/api/2023-03-06/paths/plug.json") # cleanup end end end
Version data entries
58 entries across 58 versions & 1 rubygems