Sha256: ec4984f104ab0a78f8c5acad29c414559555fdbe4cef7c22393325e53e4ee178

Contents?: true

Size: 778 Bytes

Versions: 11

Compression:

Stored size: 778 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'

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

11 entries across 11 versions & 5 rubygems

Version Path
jicksta-adhearsion-0.8.2 app_generators/ahn/templates/Rakefile
jicksta-adhearsion-0.8.3 app_generators/ahn/templates/Rakefile
kenwiesner-adhearsioncw-0.8.3 app_generators/ahn/templates/Rakefile
mtrudel-adhearsion-0.8.3 app_generators/ahn/templates/Rakefile
adhearsion-1.0.0 app_generators/ahn/templates/Rakefile
rene-adhearsion-0.8.6 app_generators/ahn/templates/Rakefile
adhearsion-0.8.6 app_generators/ahn/templates/Rakefile
adhearsion-0.8.5 app_generators/ahn/templates/Rakefile
adhearsion-0.8.4 app_generators/ahn/templates/Rakefile
adhearsion-0.8.3 app_generators/ahn/templates/Rakefile
adhearsion-0.8.2 app_generators/ahn/templates/Rakefile