Sha256: 1005da1471fd5488d2501fe1d741fad35048cf5f55ecf3135230a09a61b7d61f

Contents?: true

Size: 687 Bytes

Versions: 47

Compression:

Stored size: 687 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

47 entries across 47 versions & 1 rubygems

Version Path
autobuild-1.12.3 lib/autobuild/packages/dummy.rb
autobuild-1.12.1 lib/autobuild/packages/dummy.rb
autobuild-1.12.0 lib/autobuild/packages/dummy.rb
autobuild-1.11.2 lib/autobuild/packages/dummy.rb
autobuild-1.11.1 lib/autobuild/packages/dummy.rb
autobuild-1.9.6 lib/autobuild/packages/dummy.rb
autobuild-1.11.0 lib/autobuild/packages/dummy.rb
autobuild-1.11.0.rc1 lib/autobuild/packages/dummy.rb
autobuild-1.10.1 lib/autobuild/packages/dummy.rb
autobuild-1.10.0 lib/autobuild/packages/dummy.rb
autobuild-1.10.0.rc22 lib/autobuild/packages/dummy.rb
autobuild-1.10.0.rc21 lib/autobuild/packages/dummy.rb
autobuild-1.10.0.rc20 lib/autobuild/packages/dummy.rb
autobuild-1.10.0.rc19 lib/autobuild/packages/dummy.rb
autobuild-1.10.0.rc18 lib/autobuild/packages/dummy.rb
autobuild-1.10.0.rc17 lib/autobuild/packages/dummy.rb
autobuild-1.10.0.rc16 lib/autobuild/packages/dummy.rb
autobuild-1.10.0.rc15 lib/autobuild/packages/dummy.rb
autobuild-1.10.0.rc14 lib/autobuild/packages/dummy.rb
autobuild-1.10.0.rc13 lib/autobuild/packages/dummy.rb