class Luban::Deployment::Packages::Gem::Installer

Public Instance Methods

gem_executable() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 31
def gem_executable; parent.gem_executable; end
install_doc?() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 28
def install_doc?; task.opts.install_doc; end
install_path() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 30
def install_path; parent.install_path; end
package_path() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 29
def package_path; parent.package_path; end
source_repo() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 33
def source_repo; @source_repo ||= "https://rubygems.org"; end
source_url_root() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 34
def source_url_root; @source_url_root ||= "downloads"; end
src_file_extname() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 32
def src_file_extname; @src_file_extname ||= 'gem'; end

Protected Instance Methods

build_package() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 50
def build_package; install_gem!; end
configure_package() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 48
def configure_package; end
install_gem!() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 60
def install_gem!
  test("#{gem_executable} install #{install_opts.join(' ')} #{src_cache_path} >> #{install_log_file_path} 2>&1")
end
install_opts() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 53
def install_opts
  install_opts = ['--local']
  #install_opts << "--no-document" unless install_doc?
  install_opts << "--no-rdoc --no-ri" unless install_doc?
  install_opts
end
make_package() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 49
def make_package; end
uncompress_package() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 47
def uncompress_package; end
uninstall_gem!() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 64
def uninstall_gem!
  test("#{gem_executable} uninstall #{package_name} -a -x -I >> #{install_log_file_path} 2>&1")
end
update_binstubs() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 51
def update_binstubs; end
validate() click to toggle source
# File lib/luban/deployment/packages/gem.rb, line 38
def validate
  if parent.nil?
    abort "Aborted! Parent package for #{package_name} MUST be provided."
  end
  unless parent.is_a?(Ruby::Installer)
    abort "Aborted! Parent package for #{package_name} MUST be an instance of #{Ruby::Installer.name}"
  end
end