fluke/devops-service/commands/bootstrap_templates.rb

11 lines
230 B
Ruby
Raw Permalink Normal View History

2014-07-08 11:48:23 +04:00
module BootstrapTemplatesCommands
2018-04-04 22:44:39 +03:00
def get_bootstrap_templates
2014-07-08 11:48:23 +04:00
res = []
2015-07-17 20:22:29 +03:00
dir = "#{ENV["HOME"]}/.chef/bootstrap/"
Dir.foreach(dir) {|f| res.push(f[0..-5]) if f.end_with?(".erb")} if File.exists? dir
2014-07-08 11:48:23 +04:00
res
end
end