duh, fix stupid bug with convert

This commit is contained in:
John Bintz 2011-09-09 14:15:38 -04:00
parent 508597a9be
commit 041fe931e2
1 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@
require 'rubygems' require 'rubygems'
require 'thor' require 'thor'
require 'penchant' require 'penchant'
require 'fileutils'
class PenchantCLI < Thor class PenchantCLI < Thor
include Thor::Actions include Thor::Actions
@ -19,8 +20,7 @@ class PenchantCLI < Thor
method_options :dir => 'script' method_options :dir => 'script'
def convert def convert
install install
copy_file 'Gemfile', 'Gemfile.erb' FileUtils.mv 'Gemfile', 'Gemfile.erb'
remove_file 'Gemfile'
gemfile(:remote) gemfile(:remote)
end end
@ -50,6 +50,8 @@ class PenchantCLI < Thor
gemfile.environment gemfile.environment
end end
end end
default_task :gemfile
end end
PenchantCLI.start PenchantCLI.start