-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
executable file
·31 lines (29 loc) · 908 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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'
require 'resque/tasks'
require 'lib/call_job.rb'
require 'lib/audio_job.rb'
require 'lib/failed_job.rb'
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