Sha256: 1364117677b6a698edc58b34b911fd64a79facf7df3fa671ae17538f7dfd8d32

Contents?: true

Size: 430 Bytes

Versions: 68

Compression:

Stored size: 430 Bytes

Contents

module SOULs
  class Delete < Thor
    desc "connection [CLASS_NAME]", "Delete GraphQL Connection"
    def connection(class_name)
      file_dir = "./app/graphql/types/connections/"
      singularized_class_name = class_name.underscore.singularize
      file_path = "#{file_dir}#{singularized_class_name}_connection.rb"
      FileUtils.rm_f(file_path)
      SOULs::Painter.delete_file(file_path)
      file_path
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
souls-4.1.2 lib/souls/cli/delete/connection.rb
souls-4.1.1 lib/souls/cli/delete/connection.rb
souls-4.1.0 lib/souls/cli/delete/connection.rb
souls-4.0.3 lib/souls/cli/delete/connection.rb
souls-4.0.2 lib/souls/cli/delete/connection.rb
souls-4.0.1 lib/souls/cli/delete/connection.rb
souls-4.0.0 lib/souls/cli/delete/connection.rb
souls-3.0.8 lib/souls/cli/delete/connection.rb
souls-3.0.7 lib/souls/cli/delete/connection.rb
souls-3.0.6 lib/souls/cli/delete/connection.rb
souls-3.0.5 lib/souls/cli/delete/connection.rb
souls-3.0.4 lib/souls/cli/delete/connection.rb
souls-3.0.3 lib/souls/cli/delete/connection.rb
souls-3.0.2 lib/souls/cli/delete/connection.rb
souls-3.0.1 lib/souls/cli/delete/connection.rb
souls-3.0.0 lib/souls/cli/delete/connection.rb
souls-2.0.4 lib/souls/cli/delete/connection.rb
souls-2.0.3 lib/souls/cli/delete/connection.rb
souls-2.0.2 lib/souls/cli/delete/connection.rb
souls-2.0.1 lib/souls/cli/delete/connection.rb