forked from pool/vagrant
Dirk Mueller
6c2a7c487b
New upstream release 2.2.9 OBS-URL: https://build.opensuse.org/request/show/803169 OBS-URL: https://build.opensuse.org/package/show/Virtualization:vagrant/vagrant?expand=0&rev=42
20 lines
508 B
Ruby
20 lines
508 B
Ruby
#!/usr/bin/ruby.%{rb_ruby_suffix}
|
|
|
|
begin
|
|
$LOAD_PATH.unshift "%{vagrant_dir}/lib"
|
|
begin
|
|
require "vagrant/plugin/manager"
|
|
rescue LoadError => e
|
|
raise
|
|
end
|
|
|
|
$stdin.each_line do |gemspec_file|
|
|
next if gemspec_file =~ /\/%{name}-%{version}.gemspec$/
|
|
|
|
spec = Gem::Specification.load(gemspec_file.strip)
|
|
Vagrant::Plugin::StateFile.new(Pathname.new(File.expand_path "%{vagrant_plugin_conf}")).remove_plugin spec.name
|
|
end
|
|
rescue => e
|
|
puts "Vagrant plugin un-register error: #{e}"
|
|
end
|