Sha256: be2f758dbb9e67497d72295784fa5f33e896673bcf736003281f52ed81650642

Contents?: true

Size: 674 Bytes

Versions: 5

Compression:

Stored size: 674 Bytes

Contents

module Autobuild
    def self.dummy(spec)
        DummyPackage.new(spec)
    end

    class DummyPackage < Package
        def installstamp
            "#{srcdir}/#{STAMPFILE}"
        end

        def import(options = Hash.new); end

        def prepare
            %w[import prepare build doc].each do |phase|
                task "#{name}-#{phase}"
                t = Rake::Task["#{name}-#{phase}"]
                def t.needed?
                    false
                end
            end
            task(installstamp)
            t = Rake::Task[installstamp]
            def t.needed?
                false
            end

            super
        end
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
autobuild-1.24.0 lib/autobuild/packages/dummy.rb
autobuild-1.23.1 lib/autobuild/packages/dummy.rb
autobuild-1.23.0 lib/autobuild/packages/dummy.rb
autobuild-1.22.1 lib/autobuild/packages/dummy.rb
autobuild-1.22.0 lib/autobuild/packages/dummy.rb