Sha256: 0e54854c3da290a521c55eebbdb72bf0cb4e2f95f879045e3ab63627a41b4d26
Contents?: true
Size: 588 Bytes
Versions: 6
Compression:
Stored size: 588 Bytes
Contents
require 'rubygems' begin require 'adhearsion' 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
6 entries across 6 versions & 4 rubygems