
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
This plugin creates an environment variable (VAGRANT_HOST_PATH
by default) with the path to the project's root dir on your host machine.
You can just replace /vagrant
prefix of any file in your VM with the value of VAGRANT_HOST_PATH
and you'll get the path to that same file on the host.
If you're using Vagrant with ruby's gem:
$ gem install vagrant-host-path
Or if you installed it with an installer:
$ vagrant plugin install vagrant-host-path
$ vagrant up
[default] VM already created. Booting if it's not already running...
...
[default] Host Path set!
...
$ vagrant ssh # or any other way you connect to the VM
And after that you can use the env var within your VM:
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)
* Documentation: https://help.ubuntu.com/
Welcome to your Vagrant-built virtual machine.
Last login: Tue Feb 26 23:22:00 2013 from 10.0.2.2
vagrant@precise32:~$ echo $VAGRANT_HOST_PATH
C:/Users/MOZGIII/Desktop/vagrant-host-path/test
Vagrant::Config.run do |config|
if Vagrant.has_plugin?("vagrant-host-path")
# Enable or disable plugin (enabled by default)
config.host_path.enabled = true
# The environment key to set
config.host_path.env_key = "VAGRANT_HOST_PATH"
# Temp file to save path to
config.host_path.path_file = "/tmp/.vagrant-host-path"
# Profile script path
config.host_path.profile_path = "/etc/profile.d/vagrant-host-path.sh"
end
end
Have in mind that both the files get overwritten on every VM start.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that vagrant-host-path demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.