forked from michaeledgar/amp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ampfile.rb
47 lines (37 loc) · 990 Bytes
/
ampfile.rb
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
# need { 'lib/amp/extensions/ditz' }
# need { 'lib/amp/extensions/lighthouse' }
# Amp::LighthouseHook.add_hooks(:commit) do |hook|
# hook.token = 'e4d6af1951c240e00c216bad3c52cf269cba4a7c'
# hook.account = 'carbonica'
# hook.project = 'amp'
# end
Amp::Command.new("silly") do |c|
c.workflow :hg
c.on_run do |options, args|
puts "You're silly!"
puts "You're REALLLY silly!"
end
c.desc "tell you how silly you are"
end
# command :push do |c|
# c.before { system "rake test" }
# end
template :silly, <<-EOF
<%= change_node.inspect %> <%= revision %>
EOF
namespace :docs do
command "gen" do |c|
c.desc "create the docs"
c.on_run {|o, a| `rake yard:doc`; puts 'docs made!' }
end
command "upload" do |c|
c.desc "upload the docs"
c.on_run {|o, a| puts "docs uploaded!!!!" }
end
namespace :search do
command "methods" do |c|
c.desc "search method names"
c.on_run {|o, a| puts "#{a.inspect}"}
end
end
end