Module: Rake::Task::StatePatch

Included in:
Rake::Task
Defined in:
lib/ruby_smart/support/core_ext/rake/task.rb

Instance Method Summary collapse

Instance Method Details

#execute(*args) ⇒ Object

overwriting the execute method to track the current state



9
10
11
12
13
# File 'lib/ruby_smart/support/core_ext/rake/task.rb', line 9

def execute(*args)
  @state = :running
  super
  @state = :done
end