From 0e85cb1c92bd3c2bee9521e9fae04cbbe16c0cf1 Mon Sep 17 00:00:00 2001 From: Trent Kocurek Date: Fri, 16 Dec 2011 18:00:42 -0600 Subject: [PATCH] cleaning up some code --- rails/hamlr.thor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rails/hamlr.thor b/rails/hamlr.thor index 7cd73fa..df3ecb7 100644 --- a/rails/hamlr.thor +++ b/rails/hamlr.thor @@ -29,7 +29,7 @@ class Hamlr < Thor::Group haml.parse remove_file(f) if delete rescue Exception => e - puts e.message + puts "Oh snap! Error: #{e.message}" end end end @@ -38,7 +38,7 @@ class Hamlr < Thor::Group private def using_git? - File.directory? '.git' + File.directory?('.git') end def branch_project