lib/sinatra/commands/name_command.rb in sinatra-template-1.2.0 vs lib/sinatra/commands/name_command.rb in sinatra-template-1.3.0

- old
+ new

@@ -1,8 +1,7 @@ module Sinatra class NameCommand < Sinatra::Command - include FileUtils attr_accessor :args, :name def self.inherited(klass) Command.inherited(klass) @@ -17,9 +16,10 @@ end def initialize(args) self.args = args self.name = ARGV[1] + @app_dir = File.expand_path(FileUtils.pwd) end def clean_string(f) f.gsub(Sinatra.template_dir, @app_dir).gsub("template_app", self.underscored).gsub("TemplateApp", self.classified) end \ No newline at end of file