Module: SolrMakr

Defined in:
lib/solr_makr.rb,
lib/solr_makr/core.rb,
lib/solr_makr/version.rb,
lib/solr_makr/commands.rb,
lib/solr_makr/application.rb,
lib/solr_makr/core_status.rb,
lib/solr_makr/solr_request.rb,
lib/solr_makr/commands/shared.rb,
lib/solr_makr/solr_configuration.rb,
lib/solr_makr/commands/list_cores.rb,
lib/solr_makr/commands/write_yaml.rb,
lib/solr_makr/commands/create_core.rb,
lib/solr_makr/commands/destroy_core.rb

Defined Under Namespace

Modules: Commands, SolrRequest Classes: Application, Core, CoreName, CoreStatus, Pathlike, SolrConfiguration

Constant Summary collapse

TEMPLATE_PATH =
Pathname.new(File.dirname(__FILE__)).join('files')
VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.template(path) ⇒ String

Returns contents of file.

Parameters:

  • path (String)

Returns:

  • (String)

    contents of file

Raises:

  • (Errno::ENOENT)

    if undefined template



40
41
42
# File 'lib/solr_makr.rb', line 40

def template(path)
  TEMPLATE_PATH.join(path).read
end