lib/pluginmanager/install.rb
def extract_local_gems_plugins
    FileUtils.mkdir_p(LogStash::Environment::CACHE_PATH)
    plugins_arg.collect do |plugin|
      # We do the verify before extracting the gem so we dont have to deal with unused path
      if verify?
        puts("Validating #{plugin}")
        signal_error("Installation aborted, verification failed for #{plugin}") unless LogStash::PluginManager.logstash_plugin?(plugin, version)
      end

      # Make the original .gem available for the prepare-offline-pack,
      # paquet will lookup in the cache directory before going to rubygems.
      FileUtils.cp(plugin, ::File.join(LogStash::Environment::CACHE_PATH, ::File.basename(plugin)))
      package, path = LogStash::Rubygems.unpack(plugin, LogStash::Environment::LOCAL_GEM_PATH)
      [package.spec.name, package.spec.version, { :path => relative_path(path) }]
    end
  end
# Extract the specified local gems in a predefined local path
# Update the gemfile to use a relative path to this plugin and run
# Bundler, this will mark the gem not updatable by `bin/logstash-plugin update`
# This is the most reliable way to make it work in bundler without
# hacking with `how bundler works`
#
# Bundler 2.0, will have support for plugins source we could create a .gem source
# to support it.
Extract the specified local gems in a predefined local path
Update the gemfile to use a relative path to this plugin and run
Bundler, this will mark the gem not updatable by `bin/logstash-plugin update`
This is the most reliable way to make it work in bundler without
hacking with `how bundler works`

Bundler 2.0, will have support for plugins source we could create a .gem source
to support it.
Extract the specified local gems in a predefined local path Update the gemfile to use a relative path to this plugin and run Bundler this will mark the gem not updatable by ` bin / logstash - plugin update ` This is the most reliable way to make it work in bundler without hacking with ` how bundler works ` Bundler 2 . 0 will have support for plugins source we could create a . gem source to support it .
def extract_local_gems_plugins
    FileUtils.mkdir_p(LogStash::Environment::CACHE_PATH)
    plugins_arg.collect do |plugin|
      if verify?
        puts("Validating #{plugin}")
        signal_error("Installation aborted, verification failed for #{plugin}") unless LogStash::PluginManager.logstash_plugin?(plugin, version)
      end
      FileUtils.cp(plugin, ::File.join(LogStash::Environment::CACHE_PATH, ::File.basename(plugin)))
      package, path = LogStash::Rubygems.unpack(plugin, LogStash::Environment::LOCAL_GEM_PATH)
      [package.spec.name, package.spec.version, { :path => relative_path(path) }]
    end
  end
def extract_local_gems_plugins FileUtils . mkdir_p ( LogStash :: Environment :: CACHE_PATH ) plugins_arg . collect do | plugin | if verify? puts ( "Validating #{plugin}" ) signal_error ( "Installation aborted, verification failed for #{plugin}" ) unless LogStash :: PluginManager . logstash_plugin? ( plugin , version ) end FileUtils . cp ( plugin , :: File . join ( LogStash :: Environment :: CACHE_PATH , :: File . basename ( plugin ) ) ) package , path = LogStash :: Rubygems . unpack ( plugin , LogStash :: Environment :: LOCAL_GEM_PATH ) [ package . spec . name , package . spec . version , { :path => relative_path ( path ) } ] end end
Extract the specified local gems in a predefined local path
Update the gemfile to use a relative path to this plugin and run
Bundler, this will mark the gem not updatable by `bin/logstash-plugin update`
This is the most reliable way to make it work in bundler without
hacking with `how bundler works`
Extract the specified local gems in a predefined local path Update the gemfile to use a relative path to this plugin and run Bundler this will mark the gem not updatable by ` bin / logstash - plugin update ` This is the most reliable way to make it work in bundler without hacking with ` how bundler works `
# We do the verify before extracting the gem so we dont have to deal with unused path # Make the original .gem available for the prepare-offline-pack, # paquet will lookup in the cache directory before going to rubygems.