Sha256: 999b518de278d5a4be229cafedf7dfdcb4badda2a65cbd8090d69f4f8440a897

Contents?: true

Size: 735 Bytes

Versions: 5

Compression:

Stored size: 735 Bytes

Contents

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

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

        def initialize(*args)
            super
        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.21.0 lib/autobuild/packages/dummy.rb
autobuild-1.20.0 lib/autobuild/packages/dummy.rb
autobuild-1.19.0 lib/autobuild/packages/dummy.rb
autobuild-1.18.1 lib/autobuild/packages/dummy.rb
autobuild-1.18.0 lib/autobuild/packages/dummy.rb