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

Version Path
hephaestus-0.7.2.3 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.7.2.2 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.7.2.1 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.7.2 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.7.1 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.7.0 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.6.4 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.6.3 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.6.2 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.6.1 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.6.0 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.5.2 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.5.1 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.5.0 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.4.0 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.3.1 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.2.3 lib/hephaestus/generators/lib_generator.rb
hephaestus-0.2.2 lib/hephaestus/generators/lib_generator.rb