Sha256: 3eacbfd800b0d01dd085a434ba041c6ad9f434f096c1b2fe72707485c901a4f5

Contents?: true

Size: 958 Bytes

Versions: 12

Compression:

Stored size: 958 Bytes

Contents

# -*- ruby -*-
#encoding: utf-8

require 'pluggability'
require 'arborist' unless defined?( Arborist )


# Abstract base class for Arborist loader strategies
class Arborist::Loader
	extend Loggability,
	       Pluggability


	# Loggability API -- use the Arborist logger
	log_to :arborist

	# Pluggability API -- search for loaders under the specified path
	plugin_prefixes 'arborist/loader'


	### Return an Enumerator that yields Arborist::Nodes loaded from the target
	### directory.
	def nodes
		raise NotImplementedError, "%p needs to implement #nodes"
	end


	### Return an Enumerator that yields Arborist::Monitors loaded from the target
	### directory.
	def monitors
		raise NotImplementedError, "%p needs to implement #monitors"
	end


	### Return an Enumerator that yields Arborist::Observers loaded from the target
	### directory.
	def observers
		raise NotImplementedError, "%p needs to implement #observers"
	end


end # class Arborist::Loader

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
arborist-0.6.0 lib/arborist/loader.rb
arborist-0.5.0 lib/arborist/loader.rb
arborist-0.4.0 lib/arborist/loader.rb
arborist-0.3.0 lib/arborist/loader.rb
arborist-0.2.0 lib/arborist/loader.rb
arborist-0.2.0.pre20170519125456 lib/arborist/loader.rb
arborist-0.1.0 lib/arborist/loader.rb
arborist-0.0.1.pre20161005182540 lib/arborist/loader.rb
arborist-0.0.1.pre20161005112841 lib/arborist/loader.rb
arborist-0.0.1.pre20160829140603 lib/arborist/loader.rb
arborist-0.0.1.pre20160606141735 lib/arborist/loader.rb
arborist-0.0.1.pre20160128152542 lib/arborist/loader.rb