fluke/devops-service/commands/bootstrap_templates.rb

10 lines
236 B
Ruby
Raw Normal View History

2014-07-08 11:48:23 +04:00
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