Skip to content
This repository was archived by the owner on Jul 18, 2019. It is now read-only.

Commit 045971c

Browse files
committed
port the plugin page script to heroku
1 parent a5d0c34 commit 045971c

File tree

3 files changed

+6
-1336
lines changed

3 files changed

+6
-1336
lines changed

Rakefile

+5
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ def which(command)
2222
find { |p| File.executable?(p) }
2323
end
2424
task :start => :server
25+
26+
desc 'update the plugin file page'
27+
task :plugins do
28+
require File.dirname(__FILE__) + '/scripts/plugin/update-html.rb'
29+
end

scripts/plugin/update-html.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def h(s)
1515
end
1616

1717
tmpl = File.dirname(__FILE__)+"/template.erb"
18-
out = File.dirname(__FILE__)+"/index.html"
18+
out = File.dirname(__FILE__)+"/../../views/plugin.erb"
1919

2020
rpipe, wpipe = IO.pipe
2121

@@ -74,4 +74,3 @@ def h(s)
7474
File.open(out, "w") {|f|
7575
f.write result
7676
}
77-

0 commit comments

Comments
 (0)