lib/terraspace/cli/fmt.rb in terraspace-2.2.14 vs lib/terraspace/cli/fmt.rb in terraspace-2.2.15

- old
+ new

@@ -8,19 +8,19 @@ @mod_name = options[:mod] end @@exit_status = 0 def run - logger.info "Formating terraform files" + logger.info "Formatting terraform files" dirs.each do |dir| exit_status = format(dir) @@exit_status = exit_status if exit_status != 0 end exit(@@exit_status) end def format(dir) - Runner.new(dir).format! + Runner.new(dir, @options).format! end private def dirs if @mod_name