require 'flydata/source' require 'flydata/source/component' require 'flydata/source/errors' module Flydata module Source class Setup < Component def self.inherited(child_class) Source.register(child_class, self) end # Public Interface: Tells if Agent process needs restart. # # Returns true if Agent process needs restart at the end of #initial_run. # Returns false otherwise. def initial_run_need_restart? raise UnsupportedSourceError, "subclass must implement" end # Public Interface: initial_run complete message # # Returns a string which is displayed as the completion message at the # end of #initial_run, which gets called at the end of Agent install. def initial_run_complete_message raise UnsupportedSourceError, "subclass must implement" end end end end