Class: Hanami::CLI::Commands::App::Generate::Repo Private
- Inherits:
-
Command
- Object
- Dry::CLI::Command
- Hanami::CLI::Command
- Command
- Hanami::CLI::Commands::App::Generate::Repo
- Defined in:
- lib/hanami/cli/commands/app/generate/repo.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary
Constants inherited from Command
Instance Method Summary collapse
- #call(name:, **opts) ⇒ Object private
- #generator_class ⇒ Object private
Methods inherited from Command
#app, inherited, #measure, #run_command
Methods inherited from Hanami::CLI::Command
Constructor Details
This class inherits a constructor from Hanami::CLI::Command
Instance Method Details
#call(name:, **opts) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
33 34 35 36 |
# File 'lib/hanami/cli/commands/app/generate/repo.rb', line 33 def call(name:, **opts) name = "#{inflector.singularize(name)}_repo" unless name.end_with?("_repo") super end |
#generator_class ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 |
# File 'lib/hanami/cli/commands/app/generate/repo.rb', line 27 def generator_class Generators::App::Repo end |