Class: HerokuDependencies

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ HerokuDependencies

Returns a new instance of HerokuDependencies.



5
6
7
# File 'lib/vraptor-scaffold/generators/app/dependency/heroku_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/heroku_dependencies.rb', line 3

def options
  @options
end

Instance Method Details

#compile_scopeObject



9
10
11
12
# File 'lib/vraptor-scaffold/generators/app/dependency/heroku_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/heroku_dependencies.rb', line 20

def provided_scope
	return []
end

#test_scopeObject



14
15
16
17
18
# File 'lib/vraptor-scaffold/generators/app/dependency/heroku_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