-
Notifications
You must be signed in to change notification settings - Fork 26
/
.kick
39 lines (33 loc) · 978 Bytes
/
.kick
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
recipe :ignore
recipe :ruby
Kicker::Recipes::Ruby.runner_bin = 'bacon'
process do |files|
test_files = files.take_and_map do |file|
case file
when %r{^lib/kicker(\.rb|/validate\.rb|/growl\.rb)$}
["spec/initialization_spec.rb", ("spec/filesystem_change_spec.rb" if $1 == '.rb')]
when %r{^lib/kicker/(.+)\.rb$}
"spec/#{$1}_spec.rb"
end
end
Kicker::Recipes::Ruby.run_tests test_files
end
process do |files|
execute("rake docs:generate && open -a Safari html/index.html") if files.delete("README.rdoc")
end
startup do
log "Good choice mate!"
end
# process do
# execute "ls -l" do |status|
# if status.before?
# status.stdout? ? "Here we go!: #{status.command}" : "Here we go! GROWL"
# elsif status.after?
# if status.success?
# status.stdout? ? "Nice!\n\n#{status.output}" : "Nice!"
# else
# status.stdout? ? "Damn brow!\n\n#{status.output}" : "Damn bro!"
# end
# end
# end
# end