Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akshaymankar/copy_my_conf
Copy your configuration files into vagrant box while provisioning
https://github.com/akshaymankar/copy_my_conf
Last synced: 2 months ago
JSON representation
Copy your configuration files into vagrant box while provisioning
- Host: GitHub
- URL: https://github.com/akshaymankar/copy_my_conf
- Owner: akshaymankar
- Created: 2013-01-07T20:17:05.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-07-06T16:29:20.000Z (over 11 years ago)
- Last Synced: 2024-09-30T22:17:43.174Z (3 months ago)
- Language: Ruby
- Size: 126 KB
- Stars: 28
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CopyMyConf
Now you can copy your dotfiles into your vagrant box, so that you don't feel like visiting Mars whenever you are in vagrant shell.
## How to Use
It is a simple 3 step process
### Add gem in your vagrant
$ vagrant plugin install copy_my_conf
### Add provisioner in your Vagrantfile
Add these lines in your vagrant file inside the `Vagrant::Config.run` block
config.vm.provision :copy_my_conf do |copy_conf|
copy_conf.git
copy_conf.vim
copy_conf.ssh
endDon't worry if you have any other provisioners, vagrant can work with multiple provisioners. Yay \o/
As you might have guessed, If you make any of these false, the corresponding files won't be copiedIf home directory of the user is not `/home/vagrant` then you can specify that using the `user_home` option in above code
copy_conf.user_home = '/home/some_other_user'
### Fire !
$ vagrant up
And you'll be good to go.
## Feedback
This is my first gem so any kind of feedback would be appreciated.
Feel free fork, edit and send pull requests.## Copyrights & Author
Copyright(c) 2013 Akshay Mankar
License: [MIT License](http://mit-license.org/)