]>
gitweb.michael.orlitzky.com - mailshears.git/blob - lib/common/runner.rb
2bb66e03aebe2145f1eaf34c246eef08e363c49f
1 # Methods inherited by the various runner classes ({PruneRunner},
2 # {MvRunner}, {RmRunner}).
7 # The main thing a runner does is <tt>run()</tt>. Each runner will
8 # actually take a different number of arguments, so their
9 # <tt>run()</tt> signatures will differ. This stub is only here to
10 # let you know that it needs to be implemented.
12 # @param args [Array<Object>] whatever arguments the real implementation
16 raise NotImplementedError
20 # Report a message from the given *plugin*. All this does is prefix
21 # the message with the plugin name and then print it to stdout.
23 # @param plugin [Object] t plugin object that generated the message
26 # @param msg [String] the message to report.
28 def report(plugin
, msg
)
29 print
"#{plugin.class.to_s()} - "