Sha256: 479d8ecaed6f0f6c2b6c825237dc54b88cf03b3fcf6d60dd5e4f5564e83755ad
Contents?: true
Size: 804 Bytes
Versions: 15
Compression:
Stored size: 804 Bytes
Contents
# 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. 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
Version data entries
15 entries across 15 versions & 2 rubygems