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

Version Path
adhearsion-1.2.6 lib/adhearsion/generators/app/templates/Rakefile
adhearsion-1.2.5 lib/adhearsion/generators/app/templates/Rakefile
adhearsion-1.2.4 lib/adhearsion/generators/app/templates/Rakefile
adhearsion-2.0.0.alpha1 lib/adhearsion/generators/app/templates/Rakefile
adhearsion-1.2.3 app_generators/ahn/templates/Rakefile
adhearsion-1.2.1 app_generators/ahn/templates/Rakefile
adhearsion-1.2.0 app_generators/ahn/templates/Rakefile
adhearsion-1.1.1 app_generators/ahn/templates/Rakefile
adhearsion-1.1.0 app_generators/ahn/templates/Rakefile
adhearsion-1.0.3 app_generators/ahn/templates/Rakefile
adhearsion-1.0.2 app_generators/ahn/templates/Rakefile
adhearsion-cw-1.0.2.3 app_generators/ahn/templates/Rakefile
adhearsion-cw-1.0.2.2 app_generators/ahn/templates/Rakefile
adhearsion-cw-1.0.2.1 app_generators/ahn/templates/Rakefile
adhearsion-1.0.1 app_generators/ahn/templates/Rakefile