Sha256: 44af89b55ab3ecba5cd164d0a944941e6e4b7cf97add86f929234224e3134c9c

Contents?: true

Size: 565 Bytes

Versions: 123

Compression:

Stored size: 565 Bytes

Contents

module Souls
  class Delete < Thor
    desc "query_rbs [CLASS_NAME]", "Delete GraphQL Query RBS"
    def query_rbs(class_name)
      file_path = ""
      Dir.chdir(Souls.get_mother_path.to_s) do
        file_dir = "./sig/api/app/graphql/queries/"
        singularized_class_name = class_name.underscore.singularize
        file_path = "#{file_dir}#{singularized_class_name}*.rbs"
        FileUtils.rm(file_path)
        puts(Paint % ["Deleted file! : %{white_text}", :yellow, { white_text: [file_path.to_s, :white] }])
        file_path
      end
    end
  end
end

Version data entries

123 entries across 123 versions & 1 rubygems

Version Path
souls-1.8.6 lib/souls/cli/delete/query_rbs.rb
souls-1.8.5 lib/souls/cli/delete/query_rbs.rb
souls-1.8.4 lib/souls/cli/delete/query_rbs.rb
souls-1.8.3 lib/souls/cli/delete/query_rbs.rb
souls-1.8.2 lib/souls/cli/delete/query_rbs.rb
souls-1.8.1 lib/souls/cli/delete/query_rbs.rb
souls-1.8.0 lib/souls/cli/delete/query_rbs.rb
souls-1.7.38 lib/souls/cli/delete/query_rbs.rb
souls-1.7.37 lib/souls/cli/delete/query_rbs.rb
souls-1.7.36 lib/souls/cli/delete/query_rbs.rb
souls-1.7.34 lib/souls/cli/delete/query_rbs.rb
souls-1.7.33 lib/souls/cli/delete/query_rbs.rb
souls-1.7.32 lib/souls/cli/delete/query_rbs.rb
souls-1.7.31 lib/souls/cli/delete/query_rbs.rb
souls-1.7.30 lib/souls/cli/delete/query_rbs.rb
souls-1.7.29 lib/souls/cli/delete/query_rbs.rb
souls-1.7.28 lib/souls/cli/delete/query_rbs.rb
souls-1.7.27 lib/souls/cli/delete/query_rbs.rb
souls-1.7.26 lib/souls/cli/delete/query_rbs.rb
souls-1.7.25 lib/souls/cli/delete/query_rbs.rb