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
OpenEdx
configuration
Commits
cb01ac23
Commit
cb01ac23
authored
May 04, 2017
by
UmanShahzad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spacing.
parent
e5935453
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
vagrant/vagrantplugins.rb
+12
-12
No files found.
vagrant/vagrantplugins.rb
View file @
cb01ac23
...
...
@@ -6,28 +6,28 @@ end
def
install_plugins
(
plugins
)
if
not
is_check_necessary
exit
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.'
)
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
unless
Vagrant
.
has_plugin?
(
plugin
)
not_installed
<<
plugin
end
end
return
not_installed
...
...
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