Sha256: 05443013058ea506436801563d3cfada1ee5b800c31f7e0f817f32c7be8bb84f
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
module Souls class Delete < Thor desc "connection [CLASS_NAME]", "Delete GraphQL Connection" def connection(class_name) file_dir = "./app/graphql/types/connections/" FileUtils.mkdir_p(file_dir) unless Dir.exist?(file_dir) singularized_class_name = class_name.underscore.singularize file_path = "./app/graphql/types/connections/#{singularized_class_name}_connection.rb" FileUtils.rm(file_path) puts(Paint % ["Delete 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/connection.rb |
souls-1.8.5 | lib/souls/cli/delete/connection.rb |
souls-1.8.4 | lib/souls/cli/delete/connection.rb |