Sha256: ec8b593ae24fc1e9a3e8f1c3ef700c7c454a5aeec0504b9a952721043e4ec6b0

Contents?: true

Size: 490 Bytes

Versions: 10

Compression:

Stored size: 490 Bytes

Contents

module Souls
  class Delete < Thor
    desc "edge_rbs [CLASS_NAME]", "Delete GraphQL Edge RBS"
    def edge_rbs(class_name)
      Dir.chdir(Souls.get_mother_path.to_s) do
        file_dir = "./sig/api/app/graphql/types/edges/"
        singularized_class_name = class_name.underscore.singularize
        file_path = "#{file_dir}#{singularized_class_name}_edge.rbs"
        FileUtils.rm_f(file_path)
        Souls::Painter.delete_file(file_path)
        file_path
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
souls-1.17.3 lib/souls/cli/delete/edge_rbs.rb
souls-1.17.2 lib/souls/cli/delete/edge_rbs.rb
souls-1.17.1 lib/souls/cli/delete/edge_rbs.rb
souls-1.17.0 lib/souls/cli/delete/edge_rbs.rb
souls-1.16.4 lib/souls/cli/delete/edge_rbs.rb
souls-1.16.3 lib/souls/cli/delete/edge_rbs.rb
souls-1.16.2 lib/souls/cli/delete/edge_rbs.rb
souls-1.16.1 lib/souls/cli/delete/edge_rbs.rb
souls-1.16.0 lib/souls/cli/delete/edge_rbs.rb
souls-1.15.5 lib/souls/cli/delete/edge_rbs.rb