lib/generators/templates/common/lib/%base_name%/merbtasks.rb in merb-slices-0.9.5 vs lib/generators/templates/common/lib/%base_name%/merbtasks.rb in merb-slices-0.9.6

- old
+ new

@@ -50,16 +50,13 @@ desc "Freeze <%= module_name %> into your app (only <%= base_name %>/app)" task :freeze => [ "freeze:app" ] namespace :freeze do - desc "Freezes <%= module_name %> by installing the gem into application/gems using merb-freezer" + desc "Freezes <%= module_name %> by installing the gem into application/gems" task :gem do - begin - Object.const_get(:Freezer).freeze(ENV["GEM"] || "<%= base_name %>", ENV["UPDATE"], ENV["MODE"] || 'rubygems') - rescue NameError - puts "! dependency 'merb-freezer' missing" - end + ENV["GEM"] ||= "<%= base_name %>" + Rake::Task['slices:install_as_gem'].invoke end desc "Freezes <%= module_name %> by copying all files from <%= base_name %>/app to your application" task :app do puts "Copying all <%= base_name %>/app files to your application - resolves any collisions" \ No newline at end of file