lib/deployml/configuration.rb in deployml-0.4.0 vs lib/deployml/configuration.rb in deployml-0.4.1

- old
+ new

@@ -22,10 +22,13 @@ attr_reader :source # The destination URI to upload the project to. attr_reader :dest + # Whether the project uses Bundler. + attr_reader :bundler + # The framework used by the project attr_reader :framework # The ORM used by the project attr_reader :orm @@ -46,10 +49,14 @@ # The source URI of the project Git repository. # # @option config [String, Hash] :dest # The destination URI to upload the project to. # + # @option config [Boolean] :bundler + # Specifies whether the projects dependencies are controlled by + # [Bundler](http://gembundler.com). + # # @option config [Symbol] :framework # The framework used by the project. # # @option config [Symbol] :orm # The ORM used by the project. @@ -68,16 +75,19 @@ @dest = nil @server_name = nil @server_options = {} + @bundler = false @framework = nil @orm = nil @environment = nil @debug = false config = normalize_hash(config) + + @bundler = config[:bundler] if config[:framework] @framework = config[:framework].to_sym end