added initial section for Puppet

This commit is contained in:
Gene Liverman 2017-05-07 22:15:01 -07:00
parent cfd137f95b
commit 1b5a7ebf74

View file

@ -4,7 +4,7 @@ require 'tty-command'
require 'tty-file'
require 'tty-prompt'
# cmd = TTY::Command.new
cmd = TTY::Command.new
prompt = TTY::Prompt.new(help_color: :magenta)
@home = File.expand_path('~')
@ -44,7 +44,7 @@ else
abort("I'm not sure what to do with this OS...")
end
task = prompt.select('What would you like to do?', %w[copy link])
task = prompt.select('What would you like to do?', %w[copy link install])
case task
when 'copy'
if prompt.yes?('Are you sure you want to copy these files?')
@ -67,4 +67,10 @@ when 'link'
else
puts 'no linking'
end
when 'install'
if prompt.yes?('Are you sure you want to install your base packages?')
puts 'Here is where Puppet should be run.'
cmd.run('bundle exec puppet --version')
end
end