Sha256: 4fb38b9f774ff008b0fdc79f65d2319275b74132f8a12811a51982b29ca2ad0a

Contents?: true

Size: 695 Bytes

Versions: 4

Compression:

Stored size: 695 Bytes

Contents

module MiddlemanEmberScaffold::Cli
	class Generators < Thor
		include Thor::Actions
	    check_unknown_options!
	    namespace :new
		  desc "new [path]", "Generate a new scaffold in a folder"
		  method_option :path,
		      :aliases => "-p",
		      :default => '.',
		      :desc    => "The folder to scaffold into."
		  def new
		  	#do thor stuff
		  	target_path=File.expand_path(File.join("#{CWD}", "#{options['path']}"))
		  	say "Generating Middleman-Ember-Scaffold in #{target_path}"
		  	require "middleman_ember_scaffold/generators/scaffold"
		  	scaffolder = MiddlemanEmberScaffold::Generators::Scaffold.new
		  	scaffolder.invoke :scaffold, [target_path]
		  	
		  end
	    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mes-0.2.2 lib/middleman_ember_scaffold/cli/generators.rb
mes-0.2.1 lib/middleman_ember_scaffold/cli/generators.rb
mes-0.1.1 lib/middleman_ember_scaffold/cli/generators.rb
mes-0.1.0 lib/middleman_ember_scaffold/cli/generators.rb