Sha256: c85ae00cf911829d9172a4c2170a802297110125ee7518a090d825387c126b3d
Contents?: true
Size: 1.22 KB
Versions: 38
Compression:
Stored size: 1.22 KB
Contents
require File.expand_path("../../lib/appsignal/version.rb", __FILE__) require File.expand_path("../base.rb", __FILE__) def install logger.info "Installing appsignal agent #{Appsignal::VERSION} for Ruby #{RUBY_VERSION} on #{RUBY_PLATFORM}" write_agent_architecture return unless check_architecture arch_config = AGENT_CONFIG["triples"][ARCH] unless File.exist?(ext_path("appsignal-agent")) && File.exist?(ext_path("libappsignal.a")) && File.exist?(ext_path("appsignal.h")) archive = download_archive(arch_config, "static") return unless verify_archive(archive, arch_config, "static") unarchive(archive) end logger.info "Creating makefile" require "mkmf" if !have_library("appsignal", "appsignal_start", "appsignal.h") installation_failed "Aborting installation, libappsignal.a or appsignal.h not found" elsif !find_executable("appsignal-agent", EXT_PATH) installation_failed "Aborting installation, appsignal-agent not found" else create_makefile "appsignal_extension" logger.info "Successfully created Makefile for appsignal extension" end rescue => ex installation_failed "Exception while installing: #{ex}" ex.backtrace.each do |line| logger.error line end end install
Version data entries
38 entries across 38 versions & 1 rubygems