simple method to check for configs.
Lets ensure our code follows a style.
clean up spacing.
clean up spacing.
We should check if conf files exist in the directory. Dir.entries will return an array with . and .. so it will always be true.
returns a directory path with the jar file and version.
add enable action which enables the runit service for the instance.
add enable action which enables the runit service for the instance.
cast logstash_jar_with_path to jar_path for create_service_script and fetch_logstash_jar
use jar_path instead of multiple string interpolations.
spacing.
set default action for runit to nothing. we are setting it up here but enabling it elsewhere.
enable_service now checks for existing configuration and directory. If neither exist it won't enable the service.