From 041fe931e219c7520d087ca4cb1cb104c41b9122 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 9 Sep 2011 14:15:38 -0400 Subject: [PATCH] duh, fix stupid bug with convert --- bin/penchant | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/penchant b/bin/penchant index 309735f..8c49623 100755 --- a/bin/penchant +++ b/bin/penchant @@ -3,6 +3,7 @@ require 'rubygems' require 'thor' require 'penchant' +require 'fileutils' class PenchantCLI < Thor include Thor::Actions @@ -19,8 +20,7 @@ class PenchantCLI < Thor method_options :dir => 'script' def convert install - copy_file 'Gemfile', 'Gemfile.erb' - remove_file 'Gemfile' + FileUtils.mv 'Gemfile', 'Gemfile.erb' gemfile(:remote) end @@ -50,6 +50,8 @@ class PenchantCLI < Thor gemfile.environment end end + + default_task :gemfile end PenchantCLI.start