Making things work...

This commit is contained in:
Gene Liverman 2017-06-03 11:10:10 -07:00
parent 91110e2534
commit 77fce59b08
11 changed files with 137 additions and 22 deletions

View file

@ -65,6 +65,11 @@ task :tests do
Rake::Task[:spec].invoke
end
desc 'Run dots'
task :dots do
ruby 'bin/dots.rb'
end
namespace 'dots' do
cmd = TTY::Command.new
@ -82,4 +87,12 @@ namespace 'dots' do
~/.dotfiles/puppet/production/manifests/site.pp'
cmd.run(command)
end
desc 'Run Puppet (noop)'
task :run_puppet_noop do
command = 'bundle exec puppet apply \
--environmentpath ~/.dotfiles/puppet \
~/.dotfiles/puppet/production/manifests/site.pp --noop'
cmd.run(command)
end
end