Use the Classname::VERSION pattern

Instead of having a hardcoded version identifier in multiple
locations, we can leverage the Classname::VERSION pattern to have a
single canonical version number that everything can reference
programmatically.
This commit is contained in:
Ryan McKern 2017-03-01 12:41:06 -08:00
parent 0380b5fc9a
commit 5c794cd2b0
3 changed files with 7 additions and 9 deletions

View file

@ -16,7 +16,7 @@ class Vmfloaty
include Commander::Methods
def run
program :version, Version.get
program :version, Vmfloaty::VERSION
program :description, 'A CLI helper tool for Puppet Labs vmpooler to help you stay afloat'
config = Conf.read_config