From dc7124712b56becdf8d1c29543c259f24ed00c2f Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Sat, 16 May 2026 10:21:33 -0400 Subject: [PATCH] Follow Ruby constant conventions for playbook var --- Vagrantfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index a717572..8d459b6 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,17 +1,17 @@ # vi: set ft=ruby : # Set PLAYBOOK shell var for ./dev/playbook.yml -PLAYBOOK=ENV["PLAYBOOK"] -if !PLAYBOOK +playbook=ENV["PLAYBOOK"] +if !playbook if File.exist?('.playbook') - PLAYBOOK = IO.read('.playbook').split("\n")[0] + playbook = IO.read('.playbook').split("\n")[0] end - if !PLAYBOOK || PLAYBOOK.empty? - PLAYBOOK = "webserver" + if !playbook || playbook.empty? + playbook = "webserver" end else - File.write(".playbook", PLAYBOOK) + File.write(".playbook", playbook) end # Optionally allow more verbosity in Ansible