Sha256: e88e27708e6b7f4c7a50071a15fd9ffbd54e4acf3f21b19a27ea11a8ed421679

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

class DependencyManager

  attr_accessor :options

	def initialize(options)
		@options = options
  end

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

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

	private
  def project_style
		return "heroku" if @options[:heroku]
		return "gae" if @options[:gae]

		"default"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vraptor-scaffold-1.3.0 lib/vraptor-scaffold/generators/app/dependency/dependency_manager.rb