lib/comatose/tasks/admin.rb in darthapo-comatose-2.0 vs lib/comatose/tasks/admin.rb in darthapo-comatose-2.0.3

- old
+ new

@@ -8,11 +8,11 @@ namespace :admin do desc "Create Comatose views, layouts, and public files..." task :customize do puts "Copying public files..." - plugin_dir = File.join(File.dirname(__FILE__), '..') + plugin_dir = File.join(File.dirname(__FILE__), '../../..') FileUtils.cp( Dir[File.join(plugin_dir, 'resources', 'public', 'stylesheets', '*.css')], File.join(RAILS_ROOT, 'public', 'stylesheets'), :verbose => true ) @@ -20,11 +20,11 @@ Dir[File.join(plugin_dir, 'resources', 'public', 'javascripts', '*.js')], File.join(RAILS_ROOT, 'public', 'javascripts'), :verbose => true ) puts "Copying application views..." - FileUtils.mkdir(File.join(RAILS_ROOT, 'app', 'views', 'comatose_admin')) + FileUtils.mkdir_p(File.join(RAILS_ROOT, 'app', 'views', 'comatose_admin')) FileUtils.cp( Dir[File.join(plugin_dir, 'views', 'comatose_admin', '*.html.erb')], File.join(RAILS_ROOT, 'app', 'views', 'comatose_admin'), :verbose => true ) @@ -55,6 +55,6 @@ FileUtils.rm( File.join(RAILS_ROOT, 'app', 'views', 'layouts', 'comatose_admin.html.erb') ) end end -end \ No newline at end of file +end