Update repo structure as part of nixification

This commit is contained in:
Gene Liverman 2023-09-14 00:01:31 -04:00
parent 49e67c64fb
commit cc0efcfdde
56 changed files with 181 additions and 154 deletions

42
legacy/bin/rake_tasks.rb Normal file
View file

@ -0,0 +1,42 @@
# frozen_string_literal: true
desc 'Run dots'
task :dots do
ruby 'bin/dots.rb'
end
# rubocop:disable Metrics/BlockLength
namespace 'dots' do
cmd = TTY::Command.new
desc 'Run r10k'
task :run_r10k do
command = 'bundle exec r10k puppetfile install \
--puppetfile ~/.dotfiles/puppet/production/Puppetfile -v'
cmd.run(command)
end
desc 'Run Puppet'
task :run_puppet do
command = 'bundle exec puppet apply \
--environmentpath ~/.dotfiles/puppet \
~/.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
desc 'Install Vundle Plugins'
task :vim_plugins do
# running this command from bundler refuses to work
command = 'vim +PluginInstall! +qall'
puts "Run '#{command}' to get your Vundle plugins installed and/or updated"
end
end
# rubocop:enable Metrics/BlockLength