Module: PuppetLanguageServerSidecar::Workspace
- Defined in:
- lib/puppet-languageserver-sidecar/workspace.rb
Class Method Summary collapse
- .detect_workspace(path) ⇒ Object
-
.has_environmentconf? ⇒ Boolean
rubocop:disable Naming/PredicateName.
-
.has_module_metadata? ⇒ Boolean
rubocop:disable Naming/PredicateName.
- .root_path ⇒ Object
Class Method Details
.detect_workspace(path) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/puppet-languageserver-sidecar/workspace.rb', line 9 def self.detect_workspace(path) result = process_workspace(path) @root_path = result[:root_path] = result[:has_metadatajson] @has_environmentconf = result[:has_environmentconf] end |
.has_environmentconf? ⇒ Boolean
rubocop:disable Naming/PredicateName
24 25 26 |
# File 'lib/puppet-languageserver-sidecar/workspace.rb', line 24 def self.has_environmentconf? # rubocop:disable Naming/PredicateName @has_environmentconf end |
.has_module_metadata? ⇒ Boolean
rubocop:disable Naming/PredicateName
20 21 22 |
# File 'lib/puppet-languageserver-sidecar/workspace.rb', line 20 def self. # rubocop:disable Naming/PredicateName end |
.root_path ⇒ Object
16 17 18 |
# File 'lib/puppet-languageserver-sidecar/workspace.rb', line 16 def self.root_path @root_path end |