Class: VPL::Scanner

Inherits:
Object
  • Object
show all
Defined in:
lib/vcpkg_pipeline/core/scanner.rb

Overview

VPL::Scanner

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Scanner

Returns a new instance of Scanner.



17
18
19
20
21
22
23
# File 'lib/vcpkg_pipeline/core/scanner.rb', line 17

def initialize(path)
  @path = path
  @spec = Spec.load(path)
  @cmake = CMake.open(path)
  @vcport = VCPort.open(path)
  @git = Git.open(path)
end

Instance Attribute Details

#cmakeObject

Returns the value of attribute cmake.



15
16
17
# File 'lib/vcpkg_pipeline/core/scanner.rb', line 15

def cmake
  @cmake
end

#gitObject

Returns the value of attribute git.



15
16
17
# File 'lib/vcpkg_pipeline/core/scanner.rb', line 15

def git
  @git
end

#pathObject

Returns the value of attribute path.



15
16
17
# File 'lib/vcpkg_pipeline/core/scanner.rb', line 15

def path
  @path
end

#specObject

Returns the value of attribute spec.



15
16
17
# File 'lib/vcpkg_pipeline/core/scanner.rb', line 15

def spec
  @spec
end

#vcportObject

Returns the value of attribute vcport.



15
16
17
# File 'lib/vcpkg_pipeline/core/scanner.rb', line 15

def vcport
  @vcport
end

Instance Method Details

#scan_specObject



25
26
27
# File 'lib/vcpkg_pipeline/core/scanner.rb', line 25

def scan_spec
  @spec = Spec.load(path)
end