lib/cupper/project.rb in cupper-0.1.3 vs lib/cupper/project.rb in cupper-0.2.0
- old
+ new
@@ -20,21 +20,30 @@
@dir = directory.nil? ? Dir.getwd : directory
@subdirs = [
'cookbooks'
]
@files = [
- 'CupperFile'
+ 'Cupperfile',
]
+ # TODO: this should not be separated from the others
+ # files. Try to get them together.
+ @hidden = [
+ 'sensibles'
+ ]
end
def create
# Root project directory
struct = Structure.new(@name, @dir, nil, Entity::DIR)
struct.create
@subdirs.zip(@files).each do |dir, file|
Structure.new(dir, "#{@dir}/#{@name}", nil, Entity::DIR).create
Structure.new(file, "#{@dir}/#{@name}", file).create
+ end
+
+ @hidden.each do |file|
+ Structure.new(".#{file}", "#{@dir}/#{@name}", file).create
end
end
end
end