Sha256: 87b3c7deaf6ac122eec8a0c4e9b428a04d8000f2748c62c43320d4babf856798
Contents?: true
Size: 475 Bytes
Versions: 2
Compression:
Stored size: 475 Bytes
Contents
require 'rubygems' require 'adhearsion' require 'adhearsion/tasks' 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
sant0sk1-adhearsion-0.7.999 | app_generators/ahn/templates/Rakefile |
sevenscale-adhearsion-0.7.1003 | app_generators/ahn/templates/Rakefile |