Class: DependencyManager

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ DependencyManager

Returns a new instance of DependencyManager.



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

def options
  @options
end

Instance Method Details

#dependenciesObject



9
10
11
12
13
14
15
# File 'lib/vraptor-scaffold/generators/app/dependency/dependency_manager.rb', line 9

def dependencies
	dependencies_per_project = {"default" => DefaultDependencies,
															"gae" => GaeDependencies,
															"heroku" => HerokuDependencies}

   dependencies_per_project.fetch(project_style).new(@options)
end