class SolrMakr::Commands::SetUpLocalConfiguration

Public Instance Methods

create_local_path!(key, description: nil) click to toggle source
# File lib/solr_makr/commands/set_up_local_configuration.rb, line 16
def create_local_path!(key, description: nil)
  if local_configuration.__send__(key).create_if_missing!
    buffer.ok "Created #{local_configuration.__send__(key).path}"
  end
end
execute() click to toggle source
# File lib/solr_makr/commands/set_up_local_configuration.rb, line 6
def execute
  create_local_path! :directory
  create_local_path! :cache
  create_local_path! :configsets

  install_default_configset!

  buffer.ok "Set up local configuration directory."
end
install_default_configset!() click to toggle source
# File lib/solr_makr/commands/set_up_local_configuration.rb, line 22
def install_default_configset!
  compose SolrMakr::Configsets::InstallDefault, directory: local_configuration.default_configset
end