fluke/devops-service/commands/bootstrap_templates.rb
2015-07-17 20:22:29 +03:00

11 lines
220 B
Ruby

module BootstrapTemplatesCommands
def get_templates
res = []
dir = "#{ENV["HOME"]}/.chef/bootstrap/"
Dir.foreach(dir) {|f| res.push(f[0..-5]) if f.end_with?(".erb")} if File.exists? dir
res
end
end