Sha256: 23b133ce4c642ea03c826de39d7175fc9b21dfdd1cc789786633127b3a927b77

Contents?: true

Size: 408 Bytes

Versions: 2

Compression:

Stored size: 408 Bytes

Contents

module Micron
  class Rake < ::Rake::TaskLib


    def initialize(&block)
      @config = {
        :path => File.dirname(ENV["BUNDLE_GEMFILE"])
      }
      block.call(@config) if block

      define()
    end

    private

    def define

      desc "Run micron tests"
      task :test do
        require "micron/app"
        ARGV.clear
        Micron::App.new.run(@config)
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
micron-0.5.1 lib/micron/rake.rb
micron-0.5.0 lib/micron/rake.rb