Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
7c0d5108
Commit
7c0d5108
authored
Nov 22, 2017
by
Damian Montero
Committed by
GitHub
Nov 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1422 from uberhacker/add-vagrant-package
Add vagrant package
parents
161752a0
ba395f25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
packages/vagrant.rb
packages/vagrant.rb
+31
-0
No files found.
packages/vagrant.rb
0 → 100644
View file @
7c0d5108
require
'package'
class
Vagrant
<
Package
description
'Vagrant is a tool for building and distributing development environments.'
homepage
'https://www.vagrantup.com/'
version
'2.0.1'
source_url
'https://github.com/hashicorp/vagrant/archive/v2.0.1.tar.gz'
source_sha256
'212b91c45f60a825fcfc656424021e2550833778a6d4ebe13458676201a04eba'
binary_url
({
})
binary_sha256
({
})
depends_on
'ruby'
def
self
.
install
system
"gem install bundle"
unless
File
.
exists?
"
#{
CREW_PREFIX
}
/bin/bundle"
system
"bundle install"
system
"mkdir -p
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
cd
(
"
#{
CREW_DEST_PREFIX
}
/bin"
)
do
system
"echo '#!/bin/bash' > vagrant"
system
"echo 'cd
#{
CREW_PREFIX
}
/share/vagrant' >> vagrant"
system
"echo 'bundle exec vagrant
\"\$
@
\"
' >> vagrant"
system
"chmod +x vagrant"
end
system
"sed -i '349,354d' templates/locales/en.yml"
system
"mkdir -p
#{
CREW_DEST_PREFIX
}
/share/vagrant"
system
"cp -r .
#{
CREW_DEST_PREFIX
}
/share/vagrant"
end
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