Class: Hanami::RSpec::Commands::Generate::Part Private
- Inherits:
-
CLI::Commands::App::Command
- Object
- CLI::Commands::App::Command
- Hanami::RSpec::Commands::Generate::Part
- Defined in:
- lib/hanami/rspec/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
- #call(options) ⇒ Object private
Instance Method Details
#call(options) ⇒ 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.
152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/hanami/rspec/commands.rb', line 152 def call(, **) # FIXME: dry-cli kwargs aren't correctly forwarded in Ruby 3 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 |