add binary

This commit is contained in:
Tom Preston-Werner 2008-10-19 22:18:28 -07:00
parent 7fd8fd2b14
commit ac3e24ac59
2 changed files with 8 additions and 1 deletions

7
bin/autoblog Normal file → Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env ruby
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
require 'autoblog'
AutoBlog.process(ARGV[0], ARGV[1])

View File

@ -47,7 +47,7 @@ module AutoBlog
def write_posts def write_posts
self.posts.each do |post| self.posts.each do |post|
post.add_layout(self.layouts) post.add_layout(self.layouts)
post.write post.write(self.dest)
end end
end end
end end