vagrant-wordpress/Rakefile
Eric Teubert c393a557a0 modernizations
- always fetch lates WordPress version
- skip checksum
- add rake task :setup to install my custom shell
2011-12-17 12:21:49 +01:00

20 lines
604 B
Ruby

require "vagrant"
task :setup do
env = Vagrant::Environment.new
raise "Must run `vagrant up`" if !env.primary_vm.created?
raise "Must be running!" if !env.primary_vm.vm.running?
env.primary_vm.ssh.execute do |ssh|
ssh.exec! "export LC_ALL=en_US.UTF-8"
ssh.exec! "git clone git://github.com/eteubert/dotfiles.git"
ssh.exec! "sudo gem install rake"
puts "\nNow do the following to finish the setup:"
puts "vagrant ssh"
puts "go to ~/dotfiles and type `rake install` to setup dotfiles"
puts "sudo chsh -s /usr/bin/zsh vagrant"
puts "sudo reboot"
end
end