Module: Autobuild::RakeTaskExtension

Included in:
Rake::Task
Defined in:
lib/autobuild/rake_task_extension.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#already_invoked=(value) ⇒ Object (writeonly)

Sets the attribute already_invoked

Parameters:

  • value

    the value to set the attribute already_invoked to.



12
13
14
# File 'lib/autobuild/rake_task_extension.rb', line 12

def already_invoked=(value)
  @already_invoked = value
end

Instance Method Details

#already_invoked?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/autobuild/rake_task_extension.rb', line 8

def already_invoked?
    @already_invoked
end

#disableObject



22
23
24
# File 'lib/autobuild/rake_task_extension.rb', line 22

def disable
    @disabled = true
end

#disabled!Object



18
19
20
# File 'lib/autobuild/rake_task_extension.rb', line 18

def disabled!
    disable
end

#disabled?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/autobuild/rake_task_extension.rb', line 14

def disabled?
    @disabled
end

#initializeObject



3
4
5
6
# File 'lib/autobuild/rake_task_extension.rb', line 3

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