Sha256: 092e4af48a678ce2fae555ed85c2770f9d14768b4aeadb893359ef94ed07340a

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

class RepositoryGenerator < BaseScaffold
  
  def self.source_root
    File.dirname(__FILE__)
  end
  
  def build
    template("templates/repository.erb", "src/main/java/app/repositories/#{class_name}Repository.java")
    template("templates/repository_test.erb", "src/test/java/app/repositories/#{repository_class_name}Test.java")
  end
  
  def repository_class_name
    "#{class_name}Repository"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vraptor-scaffold-0.0.1.beta5 lib/generators/scaffold_generator/repository_generator/repository_generator.rb