Install plugin on machine without git

I would like to install a plugin in a closed environment on a RHEL machine that does not have git available. I have compiled the plugin from source and made the following change to the .gemspec file:

Files

#s.files = `git ls-files`.split($)+::Dir.glob('vendor/')
s.files = Dir.glob('vendor/
')

However the plugin does not install as shown below:

bash-4.1$ /opt/logstash/bin/plugin install /tmp/logstash-output-syslog-0.1.4.gem
Validating /tmp/logstash-output-syslog-0.1.4.gem
Installing logstash-output-syslog
Installation successful
bash-4.1$ /opt/logstash/bin/plugin list | grep logstash-output-syslog
bash-4.1$ /opt/logstash/bin/plugin list
...
logstash-output-statsd
logstash-output-stdout
logstash-output-tcp
logstash-output-udp
...
bash-4.1$

Any idea how to get the plugin installed locally?

Thanks,

#s.files = `git ls-files`.split($)+::Dir.glob('vendor/*')
s.files = Dir.glob('vendor/*')

What files are actually included in the gem? With only Dir.glob('vendor/*') I'd expect the resulting gem to only contain vendored files and not the actual plugin source files.

Why not just install Git or build the gem on a machine that has Git?

Hi Magnus,

I'm just reading this How to debug plugin installation thread which may have a solution.

Thanks,