Sha256: 2a620ee7b4a9030548ee9f995e1803e7f8193810b944ca2dc8b2f6fdb780b408
Contents?: true
Size: 496 Bytes
Versions: 6
Compression:
Stored size: 496 Bytes
Contents
module CloudstackNagios module Helper def load_template(template_path) if File.file?(template_path) templ = Erubis::Eruby.new(File.read template_path) templ.filename = template_path return templ else say "Error: template not found #{template_path}" exit 1 end end def cs_routers routers = client.list_routers(status: 'Running') routers += client.list_routers(projectid: -1, status: 'Running') end end end
Version data entries
6 entries across 6 versions & 1 rubygems