Sha256: f391241bc9eff5c112313521e6c73f591484576a34aa77c20d759dfdced84124
Contents?: true
Size: 762 Bytes
Versions: 42
Compression:
Stored size: 762 Bytes
Contents
require 'kontena/plugin_manager/common' require 'rubygems/commands/cleanup_command' module Kontena module PluginManager class Cleaner include Common attr_reader :plugin_name def initialize(plugin_name) @plugin_name = plugin_name end def command @command ||= Gem::Commands::CleanupCommand.new end # Runs gem cleanup, removes remains from previous versions # @param plugin_name [String] def cleanup options = [] options += ['-q', '--no-verbose'] unless Kontena.debug? command.handle_options options command.execute true rescue Gem::SystemExitException => e raise unless e.exit_code.zero? true end end end end
Version data entries
42 entries across 42 versions & 2 rubygems