fluke/devops-service/commands/bootstrap_templates.rb
Tim Lianov 03dc3d8d99 v3
2018-04-04 22:44:39 +03:00

11 lines
230 B
Ruby

module BootstrapTemplatesCommands
def get_bootstrap_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