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

Version Path
fluentd-ui-0.4.5 app/workers/gem_installer.rb
fluentd-ui-0.4.4 app/workers/gem_installer.rb
fluentd-ui-0.4.3 app/workers/gem_installer.rb
fluentd-ui-0.4.2 app/workers/gem_installer.rb
fluentd-ui-0.4.1 app/workers/gem_installer.rb
fluentd-ui-0.4.0 app/workers/gem_installer.rb
fluentd-ui-0.3.21 app/workers/gem_installer.rb
fluentd-ui-0.3.20 app/workers/gem_installer.rb
fluentd-ui-0.3.19 app/workers/gem_installer.rb
fluentd-ui-0.3.18 app/workers/gem_installer.rb
fluentd-ui-0.3.17 app/workers/gem_installer.rb
fluentd-ui-0.3.16 app/workers/gem_installer.rb
fluentd-ui-0.3.15 app/workers/gem_installer.rb
fluentd-ui-0.3.14 app/workers/gem_installer.rb
fluentd-ui-0.3.13 app/workers/gem_installer.rb
fluentd-ui-0.3.12 app/workers/gem_installer.rb
fluentd-ui-0.3.11 app/workers/gem_installer.rb
fluentd-ui-0.3.10 app/workers/gem_installer.rb
fluentd-ui-0.3.9 app/workers/gem_installer.rb
fluentd-ui-0.3.8 app/workers/gem_installer.rb