Sha256: fa23514c9f59f51468e396f0c1f1b160b8ab14ad60baf011a853625d5e983d8a
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
module Souls class Delete < Thor desc "edge [CLASS_NAME]", "Delete GraphQL Edge" def edge(class_name) 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" FileUtils.rm(file_path) puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }]) file_path end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
souls-1.8.6 | lib/souls/cli/delete/edge.rb |
souls-1.8.5 | lib/souls/cli/delete/edge.rb |
souls-1.8.4 | lib/souls/cli/delete/edge.rb |