Sha256: f695bc8c1c6571a4546319802cc95a25f2b85b1b9f95802744d21f9b19333a79

Contents?: true

Size: 415 Bytes

Versions: 3

Compression:

Stored size: 415 Bytes

Contents

module DeploYML
  module Frameworks
    #
    # Provides common methods needed to deploy Rails 2 and 3 projects.
    #
    module Rails
      #
      # Overrides the default `rake` method to add a `RAILS_ENV`
      # environment variable.
      #
      # @see {Environment#rake}
      #
      def rake(task,*args)
        args += ["RAILS_ENV=#{@environment}"]

        super(task,*args)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deployml-0.4.2 lib/deployml/frameworks/rails.rb
deployml-0.4.1 lib/deployml/frameworks/rails.rb
deployml-0.4.0 lib/deployml/frameworks/rails.rb