From ac3e24ac5977cf776de8342ed5c0d829922aeb0e Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Sun, 19 Oct 2008 22:18:28 -0700 Subject: [PATCH] add binary --- bin/autoblog | 7 +++++++ lib/autoblog/site.rb | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) mode change 100644 => 100755 bin/autoblog diff --git a/bin/autoblog b/bin/autoblog old mode 100644 new mode 100755 index e69de29b..8dd741fa --- a/bin/autoblog +++ b/bin/autoblog @@ -0,0 +1,7 @@ +#!/usr/bin/env ruby + +$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) + +require 'autoblog' + +AutoBlog.process(ARGV[0], ARGV[1]) \ No newline at end of file diff --git a/lib/autoblog/site.rb b/lib/autoblog/site.rb index e03207f8..cae52899 100644 --- a/lib/autoblog/site.rb +++ b/lib/autoblog/site.rb @@ -47,7 +47,7 @@ module AutoBlog def write_posts self.posts.each do |post| post.add_layout(self.layouts) - post.write + post.write(self.dest) end end end