lib/reap/task/info.rb in reap-5.0.0 vs lib/reap/task/info.rb in reap-5.10.10
- old
+ new
@@ -1,46 +1,20 @@
require 'reap/task'
-# ___ __ _____ _
-# |_ _|_ _ / _|___ |_ _|_ _ __| |__
-# | || ' \| _/ _ \ | |/ _` (_-< / /
-# |___|_||_|_| \___/ |_|\__,_/__/_\_\
#
-
-# = Info Task
+# Info Task - Displays the ProjectInfo file.
#
-# Displays the ProjectInfo file.
-
class Reap::Info < Reap::Task
- task_desc "Display ProjectInfo file."
+ def task_desc
+ "Display ProjectInfo file."
+ end
- task_help %{
+ def init
+ end
- reap info
-
- Display ProjectInfo file.
-
- }
-
- task_available { |app| app.projectfile? }
-
def run
- puts ProjectInfo.instance.info_stream
+ puts ProjectInfo.info_stream
end
end
-
-
-# Rake interface.
-
-if defined?(Rake)
-
- #require 'reap/rake/adapter'
-
- module Rake
- ReapInfo = ::Reap::RakeAdapter( ::Reap::Info )
- end
-
-end
-