lib/souls/generate/edge.rb in souls-0.25.12 vs lib/souls/generate/edge.rb in souls-0.25.13

- old
+ new

@@ -1,7 +1,9 @@ module Souls module Generate def self.edge(class_name: "souls") + file_dir = "./app/graphql/types/edges" + FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir) singularized_class_name = class_name.underscore.singularize file_path = "./app/graphql/types/edges/#{singularized_class_name}_edge.rb" File.open(file_path, "w") do |f| f.write(<<~TEXT) class Types::#{singularized_class_name.camelize}Edge < Types::BaseEdge