Sha256: 81d10d9e930f25d6613128eb1a48f472bbe5d8bd2a4593e8d6c696828c0102c2

Contents?: true

Size: 756 Bytes

Versions: 4

Compression:

Stored size: 756 Bytes

Contents

module DataMapper
  module Visualizer
    module Rake
      module Rails
        module Tasks
          #
          # Disables Bundler by default.
          #
          def initialize(options={},&block)
            super({:bundle => false}.merge(options),&block)
          end

          #
          # Overrides the Rake `task` method to make sure every defined
          # task depends on `environment`.
          #
          # @param [Array] arguments
          #   The arguments of the task.
          #
          def task(*arguments)
            if arguments.first.kind_of?(Hash)
              super(*arguments)
            else
              super(arguments.first => :environment)
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dm-visualizer-0.2.3 lib/dm-visualizer/rake/rails/tasks.rb
dm-visualizer-0.2.2 lib/dm-visualizer/rake/rails/tasks.rb
dm-visualizer-0.2.1 lib/dm-visualizer/rake/rails/tasks.rb
dm-visualizer-0.2.0 lib/dm-visualizer/rake/rails/tasks.rb