lib/terraspace/cli/fmt.rb in terraspace-0.6.9 vs lib/terraspace/cli/fmt.rb in terraspace-0.6.10
- old
+ new
@@ -28,10 +28,10 @@
end
end
def type_dirs
type = @options[:type]
- if type
+ if type && type != "all"
app_source_dirs.select { |p| p.include?("/#{type.pluralize}/") }
else
app_source_dirs
end
end