Sha256: 5e275a88acee0777fbfabeb5137a98042625c4915518de39c23da002b408ed3d

Contents?: true

Size: 403 Bytes

Versions: 4

Compression:

Stored size: 403 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."

  alias_method :msg, :task

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

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
reap-4.4.0 lib/reap/task/noop.rb
reap-4.4.1 lib/reap/task/noop.rb
reap-4.5.0 task/noop.rb
reap-4.5.1 task/noop.rb