Sha256: 9e08552a300792928debc6b02f8b09cf231c230f4a456e632dfc54b60d350e03

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 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}")
    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_appname.underscore}.json")
      remove_file("lib/#{app_name.underscore}/schemas/api/2023-03-06/paths/plug.json") # cleanup
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hephaestus-0.1.2 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.1.1 lib/hephaestus/generators/lib_generator.rb