Class: DefaultDependencies
- Inherits:
-
Object
- Object
- DefaultDependencies
- Defined in:
- lib/vraptor-scaffold/generators/app/dependency/default_dependencies.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #compile_scope ⇒ Object
-
#initialize(options) ⇒ DefaultDependencies
constructor
A new instance of DefaultDependencies.
- #provided_scope ⇒ Object
- #test_scope ⇒ Object
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 = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/vraptor-scaffold/generators/app/dependency/default_dependencies.rb', line 3 def @options end |
Instance Method Details
#compile_scope ⇒ Object
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_scope ⇒ Object
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_scope ⇒ Object
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 |