Class: MiddlemanEmberScaffold::Cli::Generate
- Inherits:
-
Thor
- Object
- Thor
- MiddlemanEmberScaffold::Cli::Generate
- Includes:
- Thor::Actions
- Defined in:
- lib/middleman_ember_scaffold/cli/generators.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#generate ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/middleman_ember_scaffold/cli/generators.rb', line 36 def generate type = ['type'] file = ['file'] say "Generating #{type} for #{file}" scaffolder = MiddlemanEmberScaffold::Generators::Generate.new scaffolder.invoke :generate, [type, file] end |
#help ⇒ Object
46 47 48 |
# File 'lib/middleman_ember_scaffold/cli/generators.rb', line 46 def help say "You can generate views,models,controller and templates" end |