Class: MiddlemanEmberScaffold::Cli::Generate

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/middleman_ember_scaffold/cli/generators.rb

Direct Known Subclasses

GenerateAlias

Instance Method Summary collapse

Instance Method Details

#generateObject



36
37
38
39
40
41
42
43
44
# File 'lib/middleman_ember_scaffold/cli/generators.rb', line 36

def generate
  type = options['type']
  file = options['file']

  say "Generating #{type} for #{file}"
  scaffolder = MiddlemanEmberScaffold::Generators::Generate.new
  scaffolder.invoke :generate, [type, file]

end

#helpObject



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