mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 10:45:05 +01:00
fdddedb8bd
Resolves the following: - #351 (use of `sudo` when installing) - #420 (failure to install on Windows) - #431 (failure to install on MacOS) Application now relies on `appdirs` module to identify the appropriate locations for storing configuration and data, both during installation and runtime.
21 lines
544 B
Ruby
21 lines
544 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.configure("2") do |config|
|
|
config.vm.box = "ubuntu/bionic64"
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
vb.memory = "512"
|
|
end
|
|
|
|
config.vm.provision "shell", privileged: false, inline: <<-SHELL
|
|
sudo apt-get update
|
|
sudo apt-get install -y python-pip
|
|
sudo -H pip install flake8
|
|
pip install --user docopt pygments termcolor
|
|
cd /vagrant/ && python setup.py install --user
|
|
echo 'export PATH=$PATH:/home/vagrant/.local/bin' >> /home/vagrant/.bashrc
|
|
SHELL
|
|
|
|
end
|