Class: DefaultDependencies

Inherits:
Object
  • Object
show all
Defined in:
lib/vraptor-scaffold/generators/app/dependency/default_dependencies.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ DefaultDependencies

Returns a new instance of DefaultDependencies.



5
6
7
# File 'lib/vraptor-scaffold/generators/app/dependency/default_dependencies.rb', line 5

def initialize(options)
 @options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/vraptor-scaffold/generators/app/dependency/default_dependencies.rb', line 3

def options
  @options
end

Instance Method Details

#compile_scopeObject



9
10
11
12
# File 'lib/vraptor-scaffold/generators/app/dependency/default_dependencies.rb', line 9

def compile_scope
  dependencies = append_freemarker_dependency_if_necessary default_dependencies
  dependencies
end

#provided_scopeObject



20
21
22
# File 'lib/vraptor-scaffold/generators/app/dependency/default_dependencies.rb', line 20

def provided_scope
  [Dependency.new("javax.servlet", "servlet-api", "2.5"), Dependency.new("javax.servlet.jsp", "jsp-api", "2.1")]
end

#test_scopeObject



14
15
16
17
18
# File 'lib/vraptor-scaffold/generators/app/dependency/default_dependencies.rb', line 14

def test_scope
  [Dependency.new("junit", "junit", "4.10"),
   Dependency.new("org.hamcrest", "hamcrest-all", "1.1"),
   Dependency.new("org.mockito", "mockito-all", "1.9.0")]
end