Sha256: 3539461ca2bf9a21232a89b57f770b5964cba3d7907267e8a8e30024b9d4b4b7

Contents?: true

Size: 386 Bytes

Versions: 68

Compression:

Stored size: 386 Bytes

Contents

module SOULs
  class Delete < Thor
    desc "resolver [CLASS_NAME]", "Delete GraphQL Resolver"
    def resolver(class_name)
      singularized_class_name = class_name.singularize.underscore
      file_path = "./app/graphql/resolvers/#{singularized_class_name}_search.rb"
      FileUtils.rm_f(file_path)
      SOULs::Painter.delete_file(file_path.to_s)
      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/resolver.rb
souls-4.1.1 lib/souls/cli/delete/resolver.rb
souls-4.1.0 lib/souls/cli/delete/resolver.rb
souls-4.0.3 lib/souls/cli/delete/resolver.rb
souls-4.0.2 lib/souls/cli/delete/resolver.rb
souls-4.0.1 lib/souls/cli/delete/resolver.rb
souls-4.0.0 lib/souls/cli/delete/resolver.rb
souls-3.0.8 lib/souls/cli/delete/resolver.rb
souls-3.0.7 lib/souls/cli/delete/resolver.rb
souls-3.0.6 lib/souls/cli/delete/resolver.rb
souls-3.0.5 lib/souls/cli/delete/resolver.rb
souls-3.0.4 lib/souls/cli/delete/resolver.rb
souls-3.0.3 lib/souls/cli/delete/resolver.rb
souls-3.0.2 lib/souls/cli/delete/resolver.rb
souls-3.0.1 lib/souls/cli/delete/resolver.rb
souls-3.0.0 lib/souls/cli/delete/resolver.rb
souls-2.0.4 lib/souls/cli/delete/resolver.rb
souls-2.0.3 lib/souls/cli/delete/resolver.rb
souls-2.0.2 lib/souls/cli/delete/resolver.rb
souls-2.0.1 lib/souls/cli/delete/resolver.rb