var fs     = require('fs-extra');
var chalk  = require('chalk');
var path   = require('path');

module.exports = function(moduleName, config) {
  var projectPath = config.get('projectPath');
  var templatesPath = path.join(__dirname, '../..', 'templates');

  return function (callback) {
    var destination = path.join(projectPath, 'ember/app', moduleName);
    var source = path.join(templatesPath, 'ember/app', moduleName);

    console.log('');
    process.stdout.write('Copying default ember ' + moduleName + ' to ember project...');

    fs.copy(source, destination, function(err) {
      if(err) callback(err);
      process.stdout.write(chalk.green('done'));
      callback(null);
    });

  }
}

@@ -442,13 +442,11 @@
 log(
-''
 );%0A
+
     
@@ -528,24 +528,58 @@
 ject...');%0A%0A
+    if(fs.existsSync(source)) %7B%0A  
     fs.copy(
@@ -621,16 +621,18 @@
 %7B%0A      
+  
 if(err) 
@@ -646,16 +646,114 @@
 k(err);%0A
+        process.stdout.write(chalk.green('done'));%0A        callback(null);%0A      %7D);%0A    %7D else %7B%0A
       pr
@@ -815,23 +815,20 @@
 (null);%0A
+
     %7D
-);%0A
 %0A  %7D%0A%7D%0A

update copy to not throw errors if the path doesn't exist