Class: RubyLsp::Tapioca::RunGemRbiCheck
- Inherits:
-
Object
- Object
- RubyLsp::Tapioca::RunGemRbiCheck
- Defined in:
- lib/ruby_lsp/tapioca/run_gem_rbi_check.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
: Process::Status?.
-
#stderr ⇒ Object
readonly
: String.
-
#stdout ⇒ Object
readonly
: String.
Instance Method Summary collapse
-
#initialize(project_path) ⇒ RunGemRbiCheck
constructor
: (String project_path) -> void.
-
#run ⇒ Object
: -> void.
Constructor Details
#initialize(project_path) ⇒ RunGemRbiCheck
: (String project_path) -> void
17 18 19 20 21 22 |
# File 'lib/ruby_lsp/tapioca/run_gem_rbi_check.rb', line 17 def initialize(project_path) @project_path = project_path @stdout = "" #: String @stderr = "" #: String @status = nil #: Process::Status? end |
Instance Attribute Details
#status ⇒ Object (readonly)
: Process::Status?
14 15 16 |
# File 'lib/ruby_lsp/tapioca/run_gem_rbi_check.rb', line 14 def status @status end |
#stderr ⇒ Object (readonly)
: String
11 12 13 |
# File 'lib/ruby_lsp/tapioca/run_gem_rbi_check.rb', line 11 def stderr @stderr end |
#stdout ⇒ Object (readonly)
: String
11 12 13 |
# File 'lib/ruby_lsp/tapioca/run_gem_rbi_check.rb', line 11 def stdout @stdout end |
Instance Method Details
#run ⇒ Object
: -> void
25 26 27 28 29 30 31 32 33 |
# File 'lib/ruby_lsp/tapioca/run_gem_rbi_check.rb', line 25 def run return ("Not a git repository") unless git_repo? cleanup_orphaned_rbis if lockfile_changed? generate_gem_rbis end end |