lib/shoe/generator.rb in shoe-0.4.0 vs lib/shoe/generator.rb in shoe-0.5.0
- old
+ new
@@ -1,11 +1,11 @@
require 'erb'
require 'pathname'
module Shoe
class Generator
- def initialize
- @root = Pathname.pwd.expand_path
+ def initialize(root)
+ @root = Pathname.new(root).expand_path
@template_path = Pathname.new(__FILE__).dirname.join('templates')
end
def run
path('README.rdoc').install template('readme.erb')