Follow Ruby constant conventions for playbook var

This commit is contained in:
2026-05-16 10:21:33 -04:00
parent 4603ff67d9
commit dc7124712b
Vendored
+6 -6
View File
@@ -1,17 +1,17 @@
# vi: set ft=ruby : # vi: set ft=ruby :
# Set PLAYBOOK shell var for ./dev/playbook.yml # Set PLAYBOOK shell var for ./dev/playbook.yml
PLAYBOOK=ENV["PLAYBOOK"] playbook=ENV["PLAYBOOK"]
if !PLAYBOOK if !playbook
if File.exist?('.playbook') if File.exist?('.playbook')
PLAYBOOK = IO.read('.playbook').split("\n")[0] playbook = IO.read('.playbook').split("\n")[0]
end end
if !PLAYBOOK || PLAYBOOK.empty? if !playbook || playbook.empty?
PLAYBOOK = "webserver" playbook = "webserver"
end end
else else
File.write(".playbook", PLAYBOOK) File.write(".playbook", playbook)
end end
# Optionally allow more verbosity in Ansible # Optionally allow more verbosity in Ansible