From 2fd9fd875274c29b8d812953139ff344005021e4 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 2 Apr 2010 11:49:49 -0400 Subject: [PATCH] tweak installer --- bin/trivialize | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/trivialize b/bin/trivialize index 67e597d..ccda74b 100755 --- a/bin/trivialize +++ b/bin/trivialize @@ -11,7 +11,7 @@ class Installer @dest_dir = dest_dir end - def self.go(dest_dir) + def self.go(dest_dir, &block) installer = Installer.new(dest_dir) installer.instance_eval &block end @@ -30,7 +30,7 @@ class Installer File.join(@dest_dir, *dest) end - def self.paths_to_a(*paths) + def paths_to_a(*paths) paths.collect do |path| if path.kind_of? String path = path.split('/') @@ -80,6 +80,7 @@ else mkdir %w{content actions views scripts styles lib config} copy 'lib/trivial.php' + copy 'config/trivial.inc' copy 'dist/htaccess.dist', '.htaccess' copy 'views/application.inc' copy 'content/index.html'