Sha256: aaffa6da16289a75139a1c0b12aea527e98e17a538ea7bf9c6d7c823a8ae50bd
Contents?: true
Size: 559 Bytes
Versions: 33
Compression:
Stored size: 559 Bytes
Contents
class GemInstaller include SuckerPunch::Job workers 16 def perform(gem_name, version = nil) SuckerPunch.logger.info "install #{gem_name} #{version}" pl = Plugin.new(gem_name: gem_name, version: version) begin # NOTE: uninstall all versions of `gem_name` then install it for upgrade/downgrade pl.uninstall! if pl.installed? pl.install! SuckerPunch.logger.info "installed #{gem_name} #{version}" rescue Plugin::GemError SuckerPunch.logger.warn "installing #{gem_name} #{version} is failed" end end end
Version data entries
33 entries across 33 versions & 1 rubygems