This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import fnmatch | |
>>> a = '/var/lib/docker/place/thing.sh' | |
>>> fnmatch.fnmatch(a, '/var/*') | |
True | |
>>> fnmatch.fnmatch(a, '/var/*/thing.sh') | |
True | |
>>> fnmatch.fnmatch(a, '/var/lib/docker/place/subplace/../thing.sh') | |
False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO ] Executing command '/bin/bash -c "source ~/.nvm/nvm.sh; nvm ls v0.10.32 | grep \'N/A\'"' as user 'vagrant' in directory '/home/vagrant' | |
[DEBUG ] output: /bin/bash: /root/.nvm/nvm.sh: Permission denied | |
/bin/bash: nvm: command not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "2creatives-centos65-652" | |
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.2/centos65-x86_64-20131219.box" | |
config.vm.hostname = "mymachine.com" | |
config.vm.synced_folder "salt/root/", "/srv/" |