logstash/lib/pluginmanager
Pier-Hugues Pellerin db0ded3d60 Make sure prepare_offline_pack command only accept a filename
This PR changes the behavior of the command when you were specify a directory
instead of a filename, if the directory exists it would have deleted the
directory and the files in it.

The new flow and validation is now safer, if you specify a directory
Logstash will tell you to specify a complete filename.

If the ZIP extension is missing, the command line will ask you to make
sure you target a right filename.

If the output file already exist it will *not* delete it but instead
will return a warning message, you can force a delete by using the
`--overwrite` option.

Fixes: #6862

Fixes #6861
2017-03-31 11:05:17 -04:00
..
bundler Allow to run the bin/logstash-plugin install <pack> outside of the Logstash directory 2017-01-31 13:33:31 -05:00
pack_fetch_strategy Ignore NIL/EMPTY values for LOGSTASH_PACK_URL environment variable 2017-02-02 09:15:42 -05:00
pack_installer Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
templates Add new Codec#encode_sync, Codec#multi_encode and Output#multi_receive_encoded methods. 2016-08-22 14:08:04 -04:00
utils Open file in binary mode. 2017-02-06 00:03:00 -05:00
command.rb Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
custom_gem_indexer.rb Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
errors.rb Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
gem_installer.rb Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
gemfile.rb Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
generate.rb add codec as a new kind of templates in the plugin generator 2016-06-01 16:15:37 +00:00
install.rb Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
install_strategy_factory.rb Feature: A way to install/remove a plugin pack 2016-11-17 14:00:02 -05:00
list.rb This PR changes two things: 2016-11-11 09:43:44 -05:00
main.rb Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
offline_plugin_packager.rb Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
pack.rb Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
pack_command.rb Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
prepare_offline_pack.rb Make sure prepare_offline_pack command only accept a filename 2017-03-31 11:05:17 -04:00
remove.rb Relax the acceptance test expectation to match only the exception message 2016-11-29 14:24:37 -05:00
ui.rb Feature: A way to install/remove a plugin pack 2016-11-17 14:00:02 -05:00
unpack.rb Add bin/logstash-plugin prepare-offline-pack command 2017-01-03 13:59:51 -05:00
update.rb Make it work with update too 2016-12-16 10:27:33 -05:00
util.rb Remove validate warning because its useless 2016-08-04 17:31:37 -04:00