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