Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
fdcb69f3
Commit
fdcb69f3
authored
May 05, 2017
by
Ned Batchelder
Committed by
GitHub
May 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Automate required vagrant plugin installation for any number of plugins."
parent
e83ef524
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
53 deletions
+13
-53
vagrant/base/analyticstack/Vagrantfile
+3
-2
vagrant/base/cluster/Vagrantfile
+1
-0
vagrant/base/devstack/Vagrantfile
+3
-2
vagrant/release/analyticstack/Vagrantfile
+3
-3
vagrant/release/devstack/Vagrantfile
+3
-2
vagrant/vagrantplugins.rb
+0
-44
No files found.
vagrant/base/analyticstack/Vagrantfile
View file @
fdcb69f3
Vagrant
.
require_version
">= 1.8.7"
require_relative
'../../vagrantplugins'
install_plugins
([
'vagrant-vbguest'
])
unless
Vagrant
.
has_plugin?
(
"vagrant-vbguest"
)
raise
"Please install the vagrant-vbguest plugin by running `vagrant plugin install vagrant-vbguest`"
end
VAGRANTFILE_API_VERSION
=
"2"
...
...
vagrant/base/cluster/Vagrantfile
View file @
fdcb69f3
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION
=
"2"
...
...
vagrant/base/devstack/Vagrantfile
View file @
fdcb69f3
Vagrant
.
require_version
">= 1.8.7"
require_relative
'../../vagrantplugins'
install_plugins
([
'vagrant-vbguest'
])
unless
Vagrant
.
has_plugin?
(
"vagrant-vbguest"
)
raise
"Please install the vagrant-vbguest plugin by running `vagrant plugin install vagrant-vbguest`"
end
VAGRANTFILE_API_VERSION
=
"2"
...
...
vagrant/release/analyticstack/Vagrantfile
View file @
fdcb69f3
Vagrant
.
require_version
">= 1.8.7"
require_relative
'../../vagrantplugins'
install_plugins
([
'vagrant-vbguest'
])
unless
Vagrant
.
has_plugin?
(
"vagrant-vbguest"
)
raise
"Please install the vagrant-vbguest plugin by running `vagrant plugin install vagrant-vbguest`"
end
VAGRANTFILE_API_VERSION
=
"2"
...
...
vagrant/release/devstack/Vagrantfile
View file @
fdcb69f3
Vagrant
.
require_version
">= 1.8.7"
require_relative
'../../vagrantplugins'
install_plugins
([
'vagrant-vbguest'
])
unless
Vagrant
.
has_plugin?
(
"vagrant-vbguest"
)
raise
"Please install the vagrant-vbguest plugin by running `vagrant plugin install vagrant-vbguest`"
end
VAGRANTFILE_API_VERSION
=
"2"
...
...
vagrant/vagrantplugins.rb
deleted
100644 → 0
View file @
e83ef524
# Don't check for plugins on certain subcommands of vagrant.
def
is_check_necessary
exempt
=
[
'help'
,
'plugin'
,
'version'
]
return
ARGV
.
any?
?
(
ARGV
&
exempt
).
empty?
:
false
end
def
install_plugins
(
plugins
)
if
not
is_check_necessary
exit
end
not_installed
=
get_not_installed
(
plugins
)
if
not_installed
.
any?
puts
"The following required plugins must be installed:"
puts
"'
#{
not_installed
.
join
(
"', '"
)
}
'"
print
"Install? [y]/n: "
unless
STDIN
.
gets
.
chomp
==
"n"
not_installed
.
each
{
|
plugin
|
install_plugin
(
plugin
)
}
else
exit
end
$?
?
continue
:
raise
(
'Plugin installation failed, see errors above.'
)
end
end
def
get_not_installed
(
plugins
)
not_installed
=
[]
plugins
.
each
do
|
plugin
|
unless
Vagrant
.
has_plugin?
(
plugin
)
not_installed
<<
plugin
end
end
return
not_installed
end
def
install_plugin
(
plugin
)
system
"vagrant plugin install
#{
plugin
}
"
end
# If plugins successfully installed, restart vagrant to detect changes.
def
continue
exec
"vagrant
#{
ARGV
.
join
(
' '
)
}
"
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment