class Luban::Deployment::Packages::Elasticsearch::Installer

Public Instance Methods

installed?() click to toggle source
# File lib/luban/deployment/packages/elasticsearch/installer.rb, line 18
def installed?
  file?(elasticsearch_executable)
end
source_repo() click to toggle source
# File lib/luban/deployment/packages/elasticsearch/installer.rb, line 10
def source_repo
  @source_repo ||= 'http://download.elastic.co'
end
source_url_root() click to toggle source
# File lib/luban/deployment/packages/elasticsearch/installer.rb, line 14
def source_url_root
  @source_url_root ||= "elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/#{package_version}"
end

Protected Instance Methods

build_package() click to toggle source
# File lib/luban/deployment/packages/elasticsearch/installer.rb, line 29
def build_package
  info "Building #{package_full_name}"
  within install_path do
    rm('-r', '*') # Clean up install path
    execute(:mv, build_path.join('*'), '.', ">> #{install_log_file_path} 2>&1")
  end
end
init() click to toggle source
Calls superclass method
# File lib/luban/deployment/packages/elasticsearch/installer.rb, line 24
def init
  super
  linked_dirs.push('data', 'logs')
end