Module: VCPkg

Defined in:
lib/vcpkg_pipeline/extension/vcpkg_vpl.rb

Overview

VCPkg

Defined Under Namespace

Classes: Base

Class Method Summary collapse

Class Method Details

.format(vcpkg_json_path) ⇒ Object



17
18
19
# File 'lib/vcpkg_pipeline/extension/vcpkg_vpl.rb', line 17

def self.format(vcpkg_json_path)
  `vcpkg format-manifest #{vcpkg_json_path}`
end

.hash(zip_path) ⇒ Object



13
14
15
# File 'lib/vcpkg_pipeline/extension/vcpkg_vpl.rb', line 13

def self.hash(zip_path)
  `vcpkg hash #{zip_path}`.sub(/\n/, '')
end

.open(path = nil) ⇒ Object



9
10
11
# File 'lib/vcpkg_pipeline/extension/vcpkg_vpl.rb', line 9

def self.open(path = nil)
  VCPkg::Base.new(path || root)
end