-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
47 lines (39 loc) · 1.16 KB
/
Rakefile
File metadata and controls
47 lines (39 loc) · 1.16 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require "rubygems"
require "echoe"
class Echoe
def honor_gitignore!
self.ignore_pattern += \
Dir["**/.gitignore"].inject([]) do |pattern,gitignore|
pattern.concat \
File.readlines(gitignore).
map { |line| line.strip }.
reject { |line| "" == line }.
map { |glob|
d = File.dirname(gitignore)
d == "." ? glob : File.join(d, glob)
}
end.flatten.uniq
end
end
Echoe.new "walter" do |p|
p.author = "Seth Thomas Rasmussen"
p.email = "sethrasmussen@gmail.com"
p.url = "http://github.com/greatseth/walter"
p.description = p.summary = "A cross-platform, graphical interface to Git repositories."
p.runtime_dependencies = ["vegas", "sinatra", "thin", "grit", "haml", "open4"]
p.ignore_pattern = %w( test/**/* )
p.retain_gemspec = true
p.use_sudo = false
p.honor_gitignore!
end
desc "Tail the Vegas log file"
task :log do
ENV["START"] = "false"
load File.dirname(__FILE__) + "/bin/nit"
system "tail -f #{NITGIT_VEGAS_RUNNER.log_file}"
end
desc "Restart ./bin/walt"
task :restart do
system "./bin/walt -k"
system "./bin/walt"
end