Sha256: a8fae06ffebc0bcf3cd3622021cb7ba10c4558da0c519bc20d1dff09326fefa3

Contents?: true

Size: 541 Bytes

Versions: 5

Compression:

Stored size: 541 Bytes

Contents

module Autobuild
    module RakeTaskExtension
        def initialize(*, **)
            super
            @disabled = false
        end

        def already_invoked?
            @already_invoked
        end

        attr_writer :already_invoked

        def disabled?
            @disabled
        end

        def disabled!
            disable
        end

        def disable
            @disabled = true
        end
    end
end

class Rake::Task # rubocop:disable Style/ClassAndModuleChildren
    include Autobuild::RakeTaskExtension
end

Version data entries

5 entries across 5 versions & 1 rubygems

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