Sha256: a42b5d0a59f73f042d8ec04b47c90fb530a8445e9b63ec90b054994f329828f1

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

#!/usr/bin/env ruby

require 'reap/task'

#
# Noop Task
#
# This task doesn't do anything except
# display a message. It is used simply
# for test purposes when debugging Reap.
#
class Reap::Noop < Reap::Task

  section_required true

  task_desc "A no-op task to help debug reap itself."

  def init( msg )
  end

  def run( msg )
    puts ( msg.message || 'No message field in noop section.' )
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reap-4.3.4 lib/reap/task/noop.rb
reap-4.3.3 lib/reap/task/noop.rb