fluke/devops-service/commands/bootstrap_templates.rb
2014-07-08 11:48:23 +04:00

10 lines
236 B
Ruby

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