lib/adhearsion/generators/app/templates/Rakefile in adhearsion-2.0.0.alpha1 vs lib/adhearsion/generators/app/templates/Rakefile in adhearsion-2.0.0.alpha2
- old
+ new
@@ -1,27 +1,8 @@
-# This file is for the "rake" tool which automates project-related tasks. If you need to automate things, you can create
-# a new Rake task here. See http://rake.rubyforge.org for more info.
+#!/usr/bin/env rake
+
require 'rubygems'
require 'bundler'
Bundler.setup
Bundler.require
-begin
- require 'adhearsion/tasks'
-rescue LoadError
- STDERR.puts "\nCannot load Adhearsion! Not all Rake tasks will be loaded!\n\n"
-end
-
-desc "Writes a .gitignore file that ignores certain SCM annoyances such as log files"
-task :gitignore do
- ignore_file = "#{Dir.pwd}/.gitignore"
- if File.exists? ignore_file
- STDERR.puts "File #{ignore_file} already exists!"
- else
- File.open ignore_file, 'w' do |file|
- # Add other files to the Array below
- %w[ log ].each do |pattern|
- file.puts pattern
- end
- end
- end
-end
+require 'adhearsion/tasks'