jannishuebl/orchparty

View on GitHub
lib/orchparty/transformations/all.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Orchparty
  module Transformations
    class All
      def transform(ast)
        ast.applications.each do |_, application|
          application.services.transform_values! do |service|
            if application.all.is_a?(Hash)
              AST.service(application.all.deep_merge_concat(service)) 
            else
              service
            end
          end
        end
        ast
      end
    end
  end
end