Class: Hanami::Minitest::Commands::Generate::Part Private
- Inherits:
-
CLI::Commands::App::Command
- Object
- CLI::Commands::App::Command
- Hanami::Minitest::Commands::Generate::Part
- Defined in:
- lib/hanami/minitest/commands.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.
Instance Method Summary collapse
Instance Method Details
#call(options = nil, name: nil, slice: nil, skip_tests: false) ⇒ 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.
124 125 126 127 128 129 130 131 132 |
# File 'lib/hanami/minitest/commands.rb', line 124 def call( = nil, name: nil, slice: nil, skip_tests: false, **) return if skip_tests slice = inflector.underscore(Shellwords.shellescape(slice)) if slice name = inflector.underscore(Shellwords.shellescape(name)) generator = Generators::Part.new(fs: fs, inflector: inflector) generator.call(app.namespace, slice, name) end |