def parse_messier_config(self, config_filepath=".messier"):
"""
Read YAML config file for Messier. Defaults to .messier.
Supported options include:
`serverspec_commands`: list of shell commands to run for Serverspec
`serverspec_base_directory`: directory to cd into prior to running Serverspec
"""
try:
config_file = open(config_filepath,'r')
except IOError:
config = {}
else:
config = yaml.load(config_file)
if not config:
config = {}
return config
# Elegant solution from https://gist.github.com/LeoHuckvale/8f50f8f2a6235512827b
# Stuffing this method into class because it's harder to reference otherwise
评论列表
文章目录