Method: Boxes::Environment#hidden_templates

Defined in:
lib/boxes/environment.rb

#hidden_templatesObject



21
22
23
24
25
26
27
28
# File 'lib/boxes/environment.rb', line 21

def hidden_templates
  t = Dir.glob("#{Boxes.config.working_dir}/templates/*/**")
  a = t.collect { |c| c.include?('preseed.cfg') ? c : next }.compact

  a.collect do |c|
    c.gsub(Boxes.config.working_dir.to_s + '/templates/', '')
  end
end