Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rcfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
rcfiles
Commits
0409b688
Commit
0409b688
authored
8 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Move vagrant scripts to Python3.
parent
e79bf554
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Documents/Shore/cleanup/vagrant-clean
+2
-2
2 additions, 2 deletions
Documents/Shore/cleanup/vagrant-clean
Documents/Shore/cleanup/vagrant-update
+2
-2
2 additions, 2 deletions
Documents/Shore/cleanup/vagrant-update
with
4 additions
and
4 deletions
Documents/Shore/cleanup/vagrant-clean
+
2
−
2
View file @
0409b688
#!/usr/bin/env python
#!/usr/bin/env python
3
from
sh
import
vagrant
from
sh
import
vagrant
from
parse
import
parse
from
parse
import
parse
...
@@ -17,7 +17,7 @@ for line in vagrant.box("list"):
...
@@ -17,7 +17,7 @@ for line in vagrant.box("list"):
for
box
in
boxes
:
for
box
in
boxes
:
for
provider
in
boxes
[
box
]:
for
provider
in
boxes
[
box
]:
for
version
in
boxes
[
box
][
provider
][:
-
1
]:
for
version
in
boxes
[
box
][
provider
][:
-
1
]:
print
'
Removing box {0} version {1}.
'
.
format
(
box
,
version
)
print
(
'
Removing box {0} version {1}.
'
.
format
(
box
,
version
)
)
vagrant
.
box
(
'
remove
'
,
'
--force
'
,
'
--provider
'
,
provider
,
vagrant
.
box
(
'
remove
'
,
'
--force
'
,
'
--provider
'
,
provider
,
'
--box-version
'
,
version
,
box
)
'
--box-version
'
,
version
,
box
)
vagrant
(
'
global-status
'
,
'
--prune
'
)
vagrant
(
'
global-status
'
,
'
--prune
'
)
This diff is collapsed.
Click to expand it.
Documents/Shore/cleanup/vagrant-update
+
2
−
2
View file @
0409b688
#!/usr/bin/env python
#!/usr/bin/env python
3
from
sh
import
vagrant
from
sh
import
vagrant
from
parse
import
parse
from
parse
import
parse
...
@@ -16,5 +16,5 @@ for line in vagrant.box('list'):
...
@@ -16,5 +16,5 @@ for line in vagrant.box('list'):
boxes
[
box
[
'
name
'
]]
=
[
box
[
'
provider
'
]]
boxes
[
box
[
'
name
'
]]
=
[
box
[
'
provider
'
]]
for
box
in
boxes
:
for
box
in
boxes
:
for
provider
in
boxes
[
box
]:
for
provider
in
boxes
[
box
]:
print
'
Updating box {0} provider {1}.
'
.
format
(
box
,
provider
)
print
(
'
Updating box {0} provider {1}.
'
.
format
(
box
,
provider
)
)
vagrant
.
box
(
'
update
'
,
'
--provider
'
,
provider
,
'
--box
'
,
box
)
vagrant
.
box
(
'
update
'
,
'
--provider
'
,
provider
,
'
--box
'
,
box
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment