Class: Shaf::Command::Generate
- Defined in:
- lib/shaf/command/generate.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
exit_with_error, identifier, inherited, #initialize, usage
Methods included from Utils
#bootstrap, #in_project_root, #in_project_root?, #is_project_root?, pluralize, #pluralize, #project_root, #project_root!
Constructor Details
This class inherits a constructor from Shaf::Command::Base
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/shaf/command/generate.rb', line 10 def call in_project_root do Generator::Factory.create(*args).call end rescue StandardError => e raise Command::ArgumentError, e. end |