diff options
| author | Vít Ondruch <vondruch@redhat.com> | 2014-11-26 13:14:23 +0100 |
|---|---|---|
| committer | Vít Ondruch <vondruch@redhat.com> | 2015-01-21 12:53:03 +0100 |
| commit | c25ecdf5593e4cec28141a134c8519ba727e06f2 (patch) | |
| tree | bdc3049e879b384b4ee5115d4e1047b2537dba8b /macros.vagrant | |
| parent | 6e020089a4e36f67901d00f5493a9c9d3cf3e2e0 (diff) | |
| download | fedora-vagrant-c25ecdf5593e4cec28141a134c8519ba727e06f2.tar.gz fedora-vagrant-c25ecdf5593e4cec28141a134c8519ba727e06f2.tar.xz fedora-vagrant-c25ecdf5593e4cec28141a134c8519ba727e06f2.zip | |
Split the macros into two files.
The plugin registration part has to be available when plugin is installed.
Diffstat (limited to 'macros.vagrant')
| -rw-r--r-- | macros.vagrant | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/macros.vagrant b/macros.vagrant index 0868b11..08df448 100644 --- a/macros.vagrant +++ b/macros.vagrant @@ -1,8 +1,3 @@ -%vagrant_dir %{_datadir}/%{name} - -%vagrant_plugin_conf_dir %{_sharedstatedir}/%{name} -%vagrant_plugin_conf %{vagrant_plugin_conf_dir}/plugins.json - # Common locations for Vagrant plugin gems %vagrant_plugin_dir %{vagrant_dir}/gems %vagrant_plugin_instdir %{vagrant_plugin_dir}/gems/%{vagrant_plugin_name}-%{version} @@ -30,18 +25,3 @@ gem install \\\ --backtrace \\\ %{-n*}%{!?-n:%{vagrant_plugin_name}-%{version}.gem} \ %{nil} - -# Macros to (un)register Vagrant gem -%vagrant_plugin_register() \ -%{_bindir}/ruby -e ' \\\ -$LOAD_PATH.unshift "%{vagrant_dir}/lib"; \\\ -require "vagrant/plugin/manager"; \\\ -Vagrant::Plugin::StateFile.new(Pathname.new(File.expand_path "%{vagrant_plugin_conf}")).add_plugin "%1";' \ -%{nil} - -%vagrant_plugin_unregister() \ -%{_bindir}/ruby -e ' \\\ -$LOAD_PATH.unshift "%{vagrant_dir}/lib"; \\\ -require "vagrant/plugin/manager"; \\\ -Vagrant::Plugin::StateFile.new(Pathname.new(File.expand_path "%{vagrant_plugin_conf}")).remove_plugin "%1";' \ -%{nil} |
