Class: MiddlemanEmberScaffold::Cli::Scaffold

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

Instance Method Summary collapse

Instance Method Details

#newObject



14
15
16
17
18
19
20
# File 'lib/middleman_ember_scaffold/cli/generators.rb', line 14

def new
  #do thor stuff
  target_path=File.expand_path(File.join("#{CWD}", "#{options['path']}"))
  say "Generating Middleman-Ember-Scaffold in #{target_path}"
  scaffolder = MiddlemanEmberScaffold::Generators::Scaffold.new
  scaffolder.invoke :scaffold, [target_path]
end