duh, fix stupid bug with convert
This commit is contained in:
parent
508597a9be
commit
041fe931e2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user