-
Notifications
You must be signed in to change notification settings - Fork 60
/
Rakefile
36 lines (30 loc) · 814 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'puppet-lint/tasks/puppet-lint'
require 'puppetlabs_spec_helper/rake_tasks'
namespace :vagrant do
desc 'Bring up the developement VM'
task :up => [:spec_prep, :remove_symlink] do
system 'vagrant up'
end
desc 'Run Puppet provisioner on the VM'
task :provision => [:spec_prep, :remove_symlink] do
system 'vagrant provision'
end
desc 'Destroy the VM'
task :destroy do
system 'vagrant destroy'
end
desc 'Check the VM status'
task :status do
system 'vagrant status'
end
desc 'Reload the VM with new mounts'
task :reload => [:spec_prep, :remove_symlink] do
system 'vagrant reload'
end
desc 'Remove the fixtures symlink to composer'
task :remove_symlink do
fixtures('symlinks').each do |source, target|
FileUtils::rm(target)
end
end
end